Commit Graph

62 Commits

Author SHA1 Message Date
xtraeme 4d3d91045c Kill __P(), use ANSI function declarations, constify; WARNS=3 2005-03-16 02:04:51 +00:00
atatat c8c0bfb574 Put the rest of the -f description in the right place, while adjusting
the wording and starting a new sentence on a new line.

My turn to play wiz and fix the man page he broke.  :)
2004-11-25 01:41:51 +00:00
wiz 98b8f0e005 Sort options. Second part of PR 26533. 2004-11-17 14:54:47 +00:00
jrf ea0b6a43d0 Add -v option to usage message. 2004-08-14 02:16:13 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
itojun c4191f3816 plug memory leak. PR misc/22479 2003-08-14 10:06:36 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun 4a1c105c26 ensure string termination 2003-05-17 19:00:22 +00:00
itojun 5be6cd5c8d prevent sscanf overrun 2003-05-17 00:50:36 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
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