ru
21f20d2ad5
Sync utility's usage() with manpage's SYNOPSIS.
2006-09-29 16:07:44 +00:00
yar
f6a5a99700
Enumerate all cases where -i is applicable.
...
MFC after: 3 days
2006-08-17 07:14:01 +00:00
glebius
642125c198
Refuse to install invalid ARP entries.
...
Submitted by: Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>
2006-02-09 12:49:39 +00:00
brooks
9d25f80654
Update usage to reflect the fact that the -d -a now accepts -i <interface>.
...
Reminded by: ru
Pointy hat: brooks
2006-01-10 16:15:58 +00:00
brooks
54cd334f64
Allow the -i <interface> option with -d -a to allow all arp entries for
...
a given interface to be removed.
2006-01-10 05:17:16 +00:00
glebius
cfbe2fd3f7
Add a knob to suppress logging of attempts to modify
...
permanent ARP entries.
Submitted by: Andrew Alcheyev <buddy telenet.ru>
2005-12-18 19:11:56 +00:00
ru
f6e0fe2653
Improve the documentation of "proxyall" knob, somewhat: we do not
...
proxy for hosts that are reachable through the same interface the
request came in from. This feature is mainly for hosts reachable
through some P2P link, e.g. the gif(4) tunnel.
2005-11-24 13:44:42 +00:00
glebius
83acb8a84c
Some fixes for last commit.
...
Submitted by: ru
2005-11-11 09:31:23 +00:00
glebius
d654293ebd
- Document last change to ARP behavior.
...
- Document several undocumented sysctl variables.
- Fix spelling of few diagnostics.
2005-11-10 11:35:53 +00:00
thompsa
2e1794dfe5
List IFT_BRIDGE as a valid type so that arp entries can be properly deleted.
...
Submitted by: Michal Mertl <mime^traveller.cz>
2005-11-03 00:56:43 +00:00
ru
e8d7a14e23
Commit some cosmetic fixes I developed some time ago, mostly style but
...
one functional change (fixed exit status from the "get" operation).
2005-06-09 15:27:46 +00:00
glebius
9eaca7f4b5
Fix exit status. In rev. 1.48 return logic of rtmsg() was confused. This
...
made arp(8) command exit status reversed for -s and -S.
Reported by: sem
MFC after: 2 weeks
2005-06-09 15:00:31 +00:00
maxim
688ee30636
o Reorganize the previous delta to make it more style(9) compliant.
...
Submitted by: ru
o Reduce an amount of memory we ask in advance.
2005-01-24 17:01:48 +00:00
maxim
85237d203b
o Try hard to guess a buffer size for a fast growing routing table.
...
An approach taken from killall/killall.c.
PR: bin/76075
Submitted by: Dmitrij Tejblum
MFC after: 3 weeks
2005-01-24 13:27:24 +00:00
ru
1f0b9e958a
For VLAN interfaces, print MAC addresses properly.
...
(Broken in rev. 1.52.)
PR: 75471
Submitted by: Jon Simola
MFC after: 3 days
2004-12-24 22:16:38 +00:00
imp
9c9b6e3045
Per letter dated July 22, 1999, delete clause 3 from code directly
...
from Berkeley.
2004-08-07 04:19:37 +00:00
ru
6294018a20
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
bms
77e7007644
mdoc(7) police
...
Submitted by: ru
2004-06-16 07:03:54 +00:00
bms
bb7d871dd0
Document the behaviour of the net.link.ether.inet.proxyall sysctl MIB
...
variable.
PR: docs/21826
Reviewed by: ru
Requested by: Bernd Luevelsmeyer
2004-06-16 06:16:29 +00:00
dfr
f670e3d9a8
Be smarter about printing non-ethernet link-level addresses.
2004-06-13 10:57:10 +00:00
stefanf
d7af95e868
Avoid assignments to cast expressions.
...
Reviewed by: md5
Approved by: das (mentor)
2004-06-08 13:08:19 +00:00
luigi
7a125692f3
Massive cleanup of the code removing global variables to
...
pass function arguments and results.
Hopefully no functional changes except fixing a couple of
bugs which could cause endless loops if an ioctl() on an
interface would fail.
2004-04-13 14:16:37 +00:00
luigi
d4f4d3d662
Back out previous commit, it was unintentional.
...
Keep WARNS at 3 though the code does compile with WARNS=5 at least on i386
Noticed by: ru
2004-04-13 11:45:28 +00:00
luigi
ce58934c26
Replace ROUNDUP/ADVANCE with SA_SIZE
2004-04-13 11:24:43 +00:00
luigi
1321dcb1f2
Make functions and variables static.
...
Remove global variables in favour of local ones.
Fix indentation of a couple of switch statements.
Overall, this program badly need cleaning up, as it relies
on information passed around through global variables.
2004-04-13 08:34:52 +00:00
mux
c13d7ea5a0
- Change several errx() calls that should have been err() calls.
...
- Handle empty ARP tables properly.
- Remove register keyword.
- arp(8) is WARNS?=4 clean, so mark it as such to avoid regressions.
2004-04-09 14:27:28 +00:00
bms
672a34781c
mdoc(7) cleanups (use .Va, not .Dv, for sysctls.)
...
Reviewed by: ru
2003-10-03 07:48:56 +00:00
bms
76f31b1f55
mdoc(7) cleanup: Break up sentences so that they start on new lines.
2003-10-03 01:20:33 +00:00
bms
5daeffef76
Point out the existence of net.link.ether.inet.log_arp_movements.
...
Add sysctl(8) to the list of cross-referenced manual pages.
2003-10-03 01:18:21 +00:00
bms
15fe99c2f8
Update arp(4) to document the 'arp: foo is on if0 but got reply from
...
bar on if1' message.
PR: bin/48489
Requested by: ru
2003-10-03 01:15:40 +00:00
yar
e91a5a8a8f
Implement a new option: -i, which will allow to limit
...
the scope of operation to the ARP entries on a particular
interface. It should be useful on machines with numerous
network interfaces, e.g., on inter-VLAN routers.
PR: bin/54151
Submitted by: Dmitry Morozovsky <marck at rinet.ru>
Discussed on: -net
MFC after: 2 weeks
2003-07-18 13:48:06 +00:00
obrien
7293a24a2b
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
obrien
a920d12f89
style.Makefile(5)
2003-04-04 17:49:21 +00:00
ru
45fb378af9
Further fix the syntax by ignoring empty and whitespace-only lines.
...
Prompted by: Eugene Grosbein <eugen@kuzbass.ru>
2003-03-05 15:53:18 +00:00
ru
4a0e0ebdff
Don't hide global `s'.
2003-01-17 08:10:43 +00:00
ru
357cc16da8
POLA dictates that in the file designated with the -f option
...
argument, leading whitespace and empty lines be ignored, and
the `#' character marks the rest of the line as a comment.
PR: bin/45958
MFC after: 3 days
2002-12-27 10:09:04 +00:00
ru
99caa6f36a
s/pseudo-device/device/
2002-12-26 19:56:29 +00:00
jmallett
5dbc18b460
Change 'int pid' to 'pid_t pid'
...
Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org>
2002-07-25 01:48:19 +00:00
charnier
d2168fe021
The .Nm utility
2002-07-14 14:47:15 +00:00
wpaul
91b9756f6b
Unbreak this file after the last drive-by committing. We have to
...
#include route.h before iso88025.h, and we have to dereference
the trld_route array correctly. (NOTE: I'm not altogether sure
that this is really the correct way to traverse this array. This
just eliminates the build warning/error. It may not work right at
runtime, and I have no way to test it since I lack the necessary
hardware.)
Broken by: kbyanc, who gets to wear the pointy hat
2002-05-09 00:37:57 +00:00
kbyanc
fa7702afe4
Update ARP to access token-ring source routing information at it's new
...
location.
Not tested by: me (sorry!)
Sponsored by: NTT Multimedia Communications Labs
2002-05-08 00:55:29 +00:00
murray
c3a0c1290d
GCC 3.1 cleanup - add a break after default: at the end of a switch
...
statement.
2002-04-07 12:05:05 +00:00
ru
917e88d84a
Don't reinvent the wheel now that ether_ntoa(3) has been fixed
...
to print leading zeros in libc_net/ether_addr.c,v 1.13.
MFC after: 3 days
2002-04-06 09:01:44 +00:00
asmodai
d76e4bc363
Correct old wording of the arp functionality.
...
We are long past the stage where we only had ARP working for 10 Mb/s.
PR: 35604
Submitted by: Gary W. Swearingen <swear@blarg.net>
Additional comments by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
2002-04-05 21:59:13 +00:00
mike
524d70a50e
Include <string.h> for some prototypes, rather than depending on
...
pollution from <strings.h>.
2002-04-01 21:13:17 +00:00
mikeh
64dbc53bb1
Fix bugs from previous commit: initialize the correct field and use
...
the correct local variable.
Caught by: Joachim Isaksson <Joachim.Isaksson@algitech.com>
Pointy hat to: mikeh
2002-03-20 01:31:15 +00:00
ru
85e74424f4
Fix a typo.
2002-03-15 16:53:32 +00:00
keramida
e62e9c04de
- Misc grammar fixes.
...
- Add `Ar filename' to the description of the -f option.
2002-03-08 12:50:41 +00:00
mikeh
e408e50776
Reorder WARNS line for style.
...
Pointed out by: bde
2001-12-10 21:13:36 +00:00
mikeh
957a76ab24
WARNS=2 cleanup.
...
Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks
2001-12-10 06:42:56 +00:00