aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/arp
Commit message (Collapse)AuthorAgeFilesLines
* MFC a bit of rev. 1.50: do not ever try to work with empty routing table.Maxim Konovalov2005-02-131-5/+20
| | | | | | | | MFC revs. 1.55 and 1.56: try to guess a buffer size for a fast growing routing table. Notes: svn path=/stable/4/; revision=141795
* MFC: The "-i" option to limit the scope of operationYaroslav Tykhiy2003-08-012-4/+33
| | | | | | | | | | to the ARP entries on a particular interface. arp.8 1.21 arp.c 1.46 Notes: svn path=/stable/4/; revision=118303
* MFC: 1.44: Further fix the syntax by ignoring empty and whitespace-only lines.Ruslan Ermilov2003-04-161-1/+1
| | | | Notes: svn path=/stable/4/; revision=113554
* MFC: Syncs and diff reductions with -current. This includes:Tom Rhodes2003-03-121-1/+1
| | | | | | | | | | | | | | | | - Remove an instance of pseudo-device. - Add an EXAMPLES section to boot0cfg.8. - A few spelling fixes. - The .Nm utility. - Eliminate hard sentence breaks. - Fix some mdoc(7) markup. - Change phk's email address to @FreeBSD.org. - Mark up files and pathnames with .Pa macro. Approved by: re (blanket) Notes: svn path=/stable/4/; revision=112166
* Sync several manual pages with current. This includes:Tom Rhodes2003-03-111-3/+3
| | | | | | | | | | | - Spelling fixes. - Grammar fixes. - The .Nm utility. Approved by: re (blanket) Notes: svn path=/stable/4/; revision=112113
* MFC: Make `#' mark a comment in the file specified with the -f option.Ruslan Ermilov2003-01-172-2/+12
| | | | Notes: svn path=/stable/4/; revision=109414
* MFC rev 1.8 > 1.9 done originally by asmodaiTom Rhodes2002-07-011-5/+7
| | | | | | | PR: 37489 Notes: svn path=/stable/4/; revision=99225
* MFC 1.39-1.40: Update ARP to access token-ring source routing informationKelly Yancey2002-06-181-5/+10
| | | | | | | | | at it's new location. Sponsored by: NTT Multimedia Communications Labs Notes: svn path=/stable/4/; revision=98366
* MFC: 1.18: Fix typo: It the -> If the.Giorgos Keramidas2002-04-091-1/+1
| | | | | | | Not objected to by: ru Notes: svn path=/stable/4/; revision=94286
* MFC: Fix ether_ntoa(3) to print ethernet addresses with leading zeros.Ruslan Ermilov2002-04-081-25/+13
| | | | Notes: svn path=/stable/4/; revision=94176
* MFC 1.28: zeropad mac address ouputCrist J. Clark2002-03-261-1/+2
| | | | | | | | | PR: bin/25584 Submitted by: David Xu <davidx@viasoft.com.cn> MFC Approved by: billf Notes: svn path=/stable/4/; revision=93252
* MFC: 1.35Mike Heffner2002-03-201-5/+5
| | | | | | | Fix bugs from previous commit. Notes: svn path=/stable/4/; revision=92736
* MFC: WARNS cleanupMike Heffner2002-03-152-59/+69
| | | | | | | | 1.7 +3 -1 src/usr.sbin/arp/Makefile 1.34 +68 -58 src/usr.sbin/arp/arp.c Notes: svn path=/stable/4/; revision=92376
* MFC: 1.17: Misc fixes and addition of `Ar filename' to -f description.Giorgos Keramidas2002-03-081-3/+3
| | | | Notes: svn path=/stable/4/; revision=91881
* MFC: 1.32: Print interface name for each ARP entry.Ruslan Ermilov2001-10-181-0/+3
| | | | Notes: svn path=/stable/4/; revision=85099
* - Renamed the ``proxy'' modifier of the -d flag to ``pub'',Ruslan Ermilov2001-10-021-19/+26
| | | | | | | | | | | | | | | | | | | 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 forcible create "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 (The commit to arp.8 is forced; the previous commit session was interrupted but arp.8 still got committed, but without sending the commit mail out.) Notes: svn path=/stable/4/; revision=84357
* MFC: arp.c,v 1.31, arp.8,v 1.14:Ruslan Ermilov2001-10-021-7/+24
| | | | | | | | | | | | | | | | - 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 Notes: svn path=/stable/4/; revision=84356
* MFC: markup and misc fixes.Ruslan Ermilov2001-08-162-3/+5
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=81780
* MFC: remove whitespace at EOL.Dima Dorfman2001-07-222-4/+4
| | | | Notes: svn path=/stable/4/; revision=80147
* MFC (1.30): Add a missing free(3).Yaroslav Tykhiy2001-05-241-0/+1
| | | | Notes: svn path=/stable/4/; revision=77116
* MFC: MAN[1-9] -> MAN.Ruslan Ermilov2001-04-251-2/+2
| | | | Notes: svn path=/stable/4/; revision=75960
* MFC: Make arp(8) handle 802.1q VLAN interfaces properly.Yaroslav Tykhiy2001-04-241-2/+5
| | | | | | | | | PR: kern/19436 Submitted by: Vladimir B. Grebenschikov <vova@express.ru> Peter Jeremy <peter.jeremy@alcatel.com.au> Notes: svn path=/stable/4/; revision=75910
* MFC:Ruslan Ermilov2001-03-052-19/+24
| | | | | | | | | | | | | | o Make the ``arp -d hostname proxy'' really do something useful. o Print a diagnostic message if no interface could be determined when attempting to create a published ARP entry. o Remove extraneous h_errno declaration. o Fix manpage. Notes: svn path=/stable/4/; revision=73670
* MFC: add a note that "proxy" is required with "-d" in some instances.Archie Cobbs2001-02-051-1/+5
| | | | Notes: svn path=/stable/4/; revision=72027
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2000-12-082-11/+9
| | | | Notes: svn path=/stable/4/; revision=69769
* Change type of vars which hold in_addr.s_addr from u_long to u_int32_t,Yoshinobu Inoue2000-03-031-3/+3
| | | | | | | | | for more safety on alpha. Approved by: jkh Notes: svn path=/head/; revision=57727
* Fix syntax error in previous commit.Jordan K. Hubbard2000-01-171-1/+1
| | | | Notes: svn path=/head/; revision=56134
* Don't overflow buffers.Kris Kennaway2000-01-161-2/+2
| | | | | | | Reviewed by: audit@freebsd.org Notes: svn path=/head/; revision=56127
* Yet another align.Ruslan Ermilov1999-09-201-1/+1
| | | | | | | | | It will be required if sizeof(struct sockaddr_in) changes in the future. Not objected to by: wollman Notes: svn path=/head/; revision=51456
* Align sockaddrs passed to/from the routing socket as supposed by kernel.Ruslan Ermilov1999-09-131-5/+7
| | | | | | | | | PR: 12847 Spotted by: Key Teck Sin <ktsin@acm.org> Reviewed by: wollman Notes: svn path=/head/; revision=51250
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50479
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48791
* When incrementing through a SIOCGIFCONF list, enforce a lower limit ofArchie Cobbs1999-06-051-5/+5
| | | | | | | | | | | | sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len. Otherwise the increment will be wrong in certain cases. Obtained from: Whistle source tree For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests SIOCGIFCONF should be dropped in favor of a sysctl mechanism. Notes: svn path=/head/; revision=47753
* Use Cd macro instead of Em for SYNOPSIS, as do other section 4 pages.Guy Helmer1999-05-041-1/+2
| | | | | | | | | Added $Id$. PR: docs/10494 Notes: svn path=/head/; revision=46444
* Submitted by: Larry LileJulian Elischer1999-03-101-1/+18
| | | | | | | | | | | Move the Olicom token ring driver to the officially sanctionned location of /sys/contrib. Also fix some brokenness in the generic token ring support. Be warned that if_dl.h has been changed and SOME programs might like recompilation. Notes: svn path=/head/; revision=44627
* Removed most unused includes of <net/if_var.h> outside the kernel.Bruce Evans1998-01-161-2/+1
| | | | Notes: svn path=/head/; revision=32570
* Submitted by: Archie@Whistle.com (Archie Cobbs)Julian Elischer1997-11-133-66/+154
| | | | | | | | | | allow teh -a option to work with the -d option thus: arp -d -a now flushes your arp cache. also fix the -n option so that -an now works correctly. Notes: svn path=/head/; revision=31145
* Use err(3). Document -n flag from OpenBSD.Philippe Charnier1997-09-032-53/+43
| | | | | | | Obtained from: OpenBSD. Notes: svn path=/head/; revision=29060
* Balance single quotes.Steve Price1997-08-231-1/+1
| | | | | | | | PR: docs/4161 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp> Notes: svn path=/head/; revision=28622
* Removed inconsistent declaration of malloc(). `make world' with DESTDIRBruce Evans1997-04-231-2/+2
| | | | | | | set to something other than "/" now actually works. Notes: svn path=/head/; revision=25103
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Update to match changes in <net/if.h>.Garrett Wollman1997-01-031-1/+2
| | | | Notes: svn path=/head/; revision=21264
* Renamed private copy of ether_aton to my_ether_aton so as to notNate Williams1996-12-191-4/+4
| | | | | | | conflict with the version in <net/ethernet.h> Notes: svn path=/head/; revision=20690
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadGarrett Wollman1996-12-101-2/+2
| | | | | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it. Notes: svn path=/head/; revision=20287
* Update wording of the one message that was in the DIAGNOSTICS section.Bill Fenner1996-11-171-1/+19
| | | | | | | | | Add three other common messages. This should be in 2.2 to go with the netinet/if_ether.c rewording. Notes: svn path=/head/; revision=19839
* Clean up warnings.Poul-Henning Kamp1996-02-082-35/+178
| | | | | | | | | fix return/exit codes in some cases. Add -S which will delete any old entry first. Add "auto" in proxy case, so it finds the right interface automatically. Notes: svn path=/head/; revision=13977
* This commit was generated by cvs2svn to compensate for changes in r13122,Peter Wemm1995-12-301-124/+0
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13123
* Make arp command actually behave as documented with the addition of a -fJordan K. Hubbard1995-08-031-1/+6
| | | | | | | | | | | | flag. The getopt handling in here is actually pretty bogus (not Phil's fault - it's original sin) but the general approach is working so I'm not going to break it. Some small tweaks of my own to add error checking to what was originally submitted. Strange how nobody noticed that the flag was documented but completely missing from the code before! [jkh]. Submitted by: Phil Taylor <phil@zipmail.co.uk> Notes: svn path=/head/; revision=9874