Ruslan Ermilov
34c96b563e
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
Gleb Smirnoff
44ec3c8c44
Some fixes for last commit.
...
Submitted by: ru
2005-11-11 09:31:23 +00:00
Gleb Smirnoff
1a5d3a92f2
- Document last change to ARP behavior.
...
- Document several undocumented sysctl variables.
- Fix spelling of few diagnostics.
2005-11-10 11:35:53 +00:00
Andrew Thompson
9af9b983e1
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
Ruslan Ermilov
f3f8b226ef
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
Gleb Smirnoff
cf77958920
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 Konovalov
19beed5e2e
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 Konovalov
66658902ed
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
Ruslan Ermilov
596e374dac
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
Warner Losh
23717fc46a
Per letter dated July 22, 1999, delete clause 3 from code directly
...
from Berkeley.
2004-08-07 04:19:37 +00:00
Ruslan Ermilov
07bfccd71e
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
Bruce M Simpson
6311b38fee
mdoc(7) police
...
Submitted by: ru
2004-06-16 07:03:54 +00:00
Bruce M Simpson
cc090be082
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
Doug Rabson
21816de34f
Be smarter about printing non-ethernet link-level addresses.
2004-06-13 10:57:10 +00:00
Stefan Farfeleder
1a5ff9285a
Avoid assignments to cast expressions.
...
Reviewed by: md5
Approved by: das (mentor)
2004-06-08 13:08:19 +00:00
Luigi Rizzo
68839124b6
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 Rizzo
a7a0612913
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 Rizzo
0b46c08590
Replace ROUNDUP/ADVANCE with SA_SIZE
2004-04-13 11:24:43 +00:00
Luigi Rizzo
bdf932ae27
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
Maxime Henrion
e2416749bf
- 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
Bruce M Simpson
43039b7df5
mdoc(7) cleanups (use .Va, not .Dv, for sysctls.)
...
Reviewed by: ru
2003-10-03 07:48:56 +00:00
Bruce M Simpson
0cc7c160e2
mdoc(7) cleanup: Break up sentences so that they start on new lines.
2003-10-03 01:20:33 +00:00
Bruce M Simpson
1e709b6f23
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
Bruce M Simpson
4cd8d8d59c
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
Yaroslav Tykhiy
b9de94e9eb
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
David E. O'Brien
b728350ee6
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
David E. O'Brien
052238b16c
style.Makefile(5)
2003-04-04 17:49:21 +00:00
Ruslan Ermilov
4bfc36240e
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
Ruslan Ermilov
3adcd04299
Don't hide global `s'.
2003-01-17 08:10:43 +00:00
Ruslan Ermilov
44acbc1adc
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
Ruslan Ermilov
2dab76f7d1
s/pseudo-device/device/
2002-12-26 19:56:29 +00:00
Juli Mallett
42f3352b5c
Change 'int pid' to 'pid_t pid'
...
Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org>
2002-07-25 01:48:19 +00:00
Philippe Charnier
490d5836b5
The .Nm utility
2002-07-14 14:47:15 +00:00
Bill Paul
2ab778e1d3
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
Kelly Yancey
97fe20b4d0
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 Stokely
123b2d4a74
GCC 3.1 cleanup - add a break after default: at the end of a switch
...
statement.
2002-04-07 12:05:05 +00:00
Ruslan Ermilov
a03b1b7ced
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
Jeroen Ruigrok van der Werven
8a4e484995
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 Barcroft
467a0b0647
Include <string.h> for some prototypes, rather than depending on
...
pollution from <strings.h>.
2002-04-01 21:13:17 +00:00
Mike Heffner
9cc7cb5818
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
Ruslan Ermilov
3c1fa5310f
Fix a typo.
2002-03-15 16:53:32 +00:00
Giorgos Keramidas
7dfa118267
- Misc grammar fixes.
...
- Add `Ar filename' to the description of the -f option.
2002-03-08 12:50:41 +00:00
Mike Heffner
28644e448a
Reorder WARNS line for style.
...
Pointed out by: bde
2001-12-10 21:13:36 +00:00
Mike Heffner
9d34414bc2
WARNS=2 cleanup.
...
Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks
2001-12-10 06:42:56 +00:00
Matthew N. Dodd
0442747236
Print [fddi] or [atm] tags for ARP addresses on interfaces of that type.
2001-10-19 00:33:26 +00:00
Ruslan Ermilov
e87a372b7f
Print interface name for each ARP entry.
...
Prodded by: Igor Podlesny <poige@morning.ru>
MFC after: 1 week
2001-10-08 11:52:23 +00:00
David E. O'Brien
ac24b049cc
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
a4c37c816b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 15:12:08 +00:00
Ruslan Ermilov
3f844a2221
- Renamed the `proxy'' modifier of the -d flag to
`pub'',
...
to be consistent with the -s flag. Updated documentation
on what this modifier does.
- Added the ``only'' keyword to the -s and -S flags, that
could be used to created "proxy-only" published entries.
Previously, arp(8) created an entry of this type only
in the absence of the route to a destination.
PR: bin/12357
MFC after: 1 week
2001-06-07 12:35:53 +00:00