Commit Graph

34 Commits

Author SHA1 Message Date
tv eda273b959 When converting to use getprogname(), please don't forget the necessary
companion call to setprogname() for portability.
2002-03-02 03:45:07 +00:00
pooka 9da6188fe8 re-convert to use getprogname(). This was already once done in rev 1.28,
but silently killed in rev 1.29.

from John Franklin <franklin@elfie.org> in bin/15771
2002-02-28 22:43:42 +00:00
bjh21 587779435b Use getnameinfo() to format link-layer addresses, rather than doing it
ourselves.
2001-10-06 19:09:44 +00:00
chs 2df1fdaa53 remove spurious newline in an error message. 2001-07-29 21:24:57 +00:00
atatat c0da9e56cb Provide an easy way for someone to erase all arp entries as opposed
to the common practice of inventing an unwieldy shell construct each
time.

Note: -f (ala route -f) is in use already, and FreeBSD provides "prior
art" for the use of -d and -a together to accomplish this.
2001-04-24 23:11:06 +00:00
fair 0ea0f71aad modified patch from PR 8566 to print the interface name for each ARP table
entry, in addition to the MAC address to IP address mapping. Tested on
NetBSD/alpha 1.4.3 and NetBSD/sparc 1.5.1_ALPHA
2001-03-19 19:49:30 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
christos f5e6028400 Get rid of the TRY_AGAIN kludge. It is completely counter intuitive to have
every DNS lookup fail after the first TRY_AGAIN failure.
Also take care of minor lint stuff [extra h_errno declaratation/NULL vs. 0 etc]
2001-01-05 19:34:13 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
erh 9a18c8bb35 Use ROUNDUP to pass addresses to the kernel aligned on a long boundary. Use the sa_len field of each address instead of sizeof(). Makes arp work on 64bit architectures. 2000-09-28 01:11:31 +00:00
mason 662fbfe2f1 Removed redundant / extra prototypes. 2000-07-12 22:36:12 +00:00
mrg 92e05e0e2c add a verbose (-v) flag for when adding/deleting arp entries. 1998-02-10 03:45:05 +00:00
fvdl 9bef2d1d82 If the arp cache is empty, don't even attempt to retrieve it. Fixes
'bad address' message when the cache is empty.
1997-11-18 23:14:38 +00:00
is c4aac00e95 Make deleting proxy arp entries on ARCnet interfaces work again.
Fixes my own last PR, whose number I don't know yet.
1997-11-16 11:25:08 +00:00
lukem 7cbe3d2c32 use __progname 1997-10-18 07:32:17 +00:00
lukem 409801916f WARNSify 1997-10-16 23:46:38 +00:00
thorpej 87ca1d62e0 Print Ethernet and FDDI addresses in the same format as ether_ntoa().
From Matt Thomas <matt@3am-software.com>
1997-03-26 01:49:44 +00:00
is 00cef679df New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:37:27 +00:00
mikel 38e37321ab merge lite2 changes 1997-03-07 07:04:42 +00:00
mikel f3b151f572 fix PR misc/3184, but somewhat differently.
include <unistd.h> for getopt() prototype, reorder includes.
eliminate some leftover unused variables.
1997-02-07 05:07:13 +00:00
mikel 38f1be3526 use ether_aton() from libc; from Klaus Klein <kleink@layla.inka.de>,
with some modifications by myself.
1997-01-18 02:12:13 +00:00
mycroft 6020b18019 Use warnx() and hstrerror(), rather than herror(). 1996-12-08 13:59:11 +00:00
cgd 867b4b0fac needs string.h 1995-04-24 13:25:18 +00:00
chopps ded185da25 oops forgot rcsid string, fix that to.. 1995-03-01 11:56:13 +00:00
chopps 7f624aaa47 fix id's 1995-03-01 11:50:52 +00:00
chopps 9a1b7b98e2 ditch use of inet_addr() use inet_aton() instead. 1995-02-28 22:51:16 +00:00
chopps c4516a41e6 Some KNF clenup. 1995-02-27 22:00:07 +00:00
chopps 215bb6256d fix typo. 1995-02-26 20:16:49 +00:00
chopps 1aad640d17 enable -f form. 1995-02-25 08:49:51 +00:00
mycroft 17c454fe1b Clean up import. 1994-05-13 08:09:19 +00:00
deraadt 4e573e80c2 patch security hole talked about on comp.security.misc 1993-12-25 02:28:46 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 804c4234ec Cleanup for GCC 2. 1993-04-18 19:27:06 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00