Commit Graph

51 Commits

Author SHA1 Message Date
rafal
ecf0596577 Convert to use getifaddrs(3) to get interface names; this is mostly removal
of grotty code to unpack data structures returned by the SIOCGIFCONF ioctl.
2002-11-08 03:40:28 +00:00
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
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
enami
d1998d430a Use .Fl instead of hardcoding -. 2002-01-22 01:35:39 +00:00
wiz
302fd23037 Whitespace nits. 2002-01-19 03:05:58 +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
kleink
eafe08d5e9 Don't make references to _10Mb/s_ Ethernet; from Christian Weisgerber in
PR bin/11239.
2000-10-17 12:23:03 +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
garbled
d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +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
961a0bd020 we don't need 'pseudo-device ether' anymore. also misc mdoc-macro-usage
cleanup, and add a missing quote (font-lock strikes again).
1997-03-07 07:41:25 +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
f15dd95a6a Clean up deleted files. 1994-12-22 11:32:52 +00:00
cgd
457aa2b833 specify man pages the new way. 1994-12-22 11:31:31 +00:00
cgd
8e0e3522e1 pull in bsd.own.mk by hand, early, so NOMAN= can be defined there. 1994-12-20 15:12:31 +00:00
mycroft
27ff0a97a2 Remove comments about the `trail' keyword. 1994-09-17 00:54:42 +00:00
pk
9b5091b2ff NOMAN support. 1994-05-17 08:55:04 +00:00
mycroft
17c454fe1b Clean up import. 1994-05-13 08:09:19 +00:00
mycroft
6e3521ef7b From 4.4-Lite. 1994-05-13 08:08:59 +00:00
jtc
281c9594a0 vmunix -> netbsd 1994-02-03 17:41:21 +00:00
cgd
2892f80630 needs -lkvm, not -lutil 1994-01-28 00:50:31 +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
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
b465cf4697 Add RCS identifiers. 1993-07-30 22:11:51 +00:00
mycroft
804c4234ec Cleanup for GCC 2. 1993-04-18 19:27:06 +00:00