christos
ab61edc6b5
allow ifscope with pub and proxy
2013-06-07 17:18:33 +00:00
christos
4d4651f0df
Add an ifscope <interface> argument to arp in the spirit of the MacOS/X one,
...
that sets the arp entry on the interface specified. Undocumented for now,
until people decide it is useful.
2013-06-07 01:09:10 +00:00
dholland
6ea002c7af
Allow -f -, as per PR 10898.
2010-06-10 06:03:20 +00:00
christos
af069eb3c7
Centralize the ROUNDUP and ADVANCE macro in a header file, give them an
...
RT_ prefix and use them appropriately, instead of making copies. Make
pppd use the RT_ROUNDUP macro; fixes proxyarp setting on 64 bit hosts.
XXX: All this should be pulled up to 5.0
2009-04-02 21:02:06 +00:00
lukem
9c1945664c
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
seanb
40918b5ad1
- re-enable 'pro' keyword to allow creation / deletion
...
of 'proxy only' entries (SIN_PROXY flag set).
2008-01-10 14:16:26 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
6fef5d355e
WARNS=4.
...
- pass lint
- don't use sscanf fgets and fixed length buffers
- always use warnx to report errors.
2006-10-22 20:54:38 +00:00
dyoung
8adc537db8
Extract common code from set() and delete() into subroutine
...
is_llinfo().
2006-09-23 21:11:14 +00:00
christos
5883cf1e6d
PR/32681: Yves-Emmanuel JUTARD: Fix and document -d [hostname [pub]]
2006-01-31 17:47:04 +00:00
xtraeme
4d3d91045c
Kill __P(), use ANSI function declarations, constify; WARNS=3
2005-03-16 02:04:51 +00:00
jrf
ea0b6a43d0
Add -v option to usage message.
2004-08-14 02:16:13 +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
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
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