aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/arp
Commit message (Collapse)AuthorAgeFilesLines
* POLA dictates that in the file designated with the -f optionRuslan Ermilov2002-12-272-2/+12
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=108314
* s/pseudo-device/device/Ruslan Ermilov2002-12-261-1/+1
| | | | Notes: svn path=/head/; revision=108293
* Change 'int pid' to 'pid_t pid'Juli Mallett2002-07-251-1/+1
| | | | | | | Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org> Notes: svn path=/head/; revision=100650
* The .Nm utilityPhilippe Charnier2002-07-141-3/+3
| | | | Notes: svn path=/head/; revision=99968
* Unbreak this file after the last drive-by committing. We have toBill Paul2002-05-091-2/+2
| | | | | | | | | | | | | | #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 Notes: svn path=/head/; revision=96235
* Update ARP to access token-ring source routing information at it's newKelly Yancey2002-05-081-5/+10
| | | | | | | | | | location. Not tested by: me (sorry!) Sponsored by: NTT Multimedia Communications Labs Notes: svn path=/head/; revision=96202
* GCC 3.1 cleanup - add a break after default: at the end of a switchMurray Stokely2002-04-071-0/+1
| | | | | | | statement. Notes: svn path=/head/; revision=94075
* Don't reinvent the wheel now that ether_ntoa(3) has been fixedRuslan Ermilov2002-04-061-25/+13
| | | | | | | | | to print leading zeros in libc_net/ether_addr.c,v 1.13. MFC after: 3 days Notes: svn path=/head/; revision=93952
* Correct old wording of the arp functionality.Jeroen Ruigrok van der Werven2002-04-051-5/+7
| | | | | | | | | | | 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> Notes: svn path=/head/; revision=93911
* Include <string.h> for some prototypes, rather than depending onMike Barcroft2002-04-011-0/+1
| | | | | | | pollution from <strings.h>. Notes: svn path=/head/; revision=93590
* Fix bugs from previous commit: initialize the correct field and useMike Heffner2002-03-201-5/+5
| | | | | | | | | | the correct local variable. Caught by: Joachim Isaksson <Joachim.Isaksson@algitech.com> Pointy hat to: mikeh Notes: svn path=/head/; revision=92735
* Fix a typo.Ruslan Ermilov2002-03-151-1/+1
| | | | Notes: svn path=/head/; revision=92346
* - Misc grammar fixes.Giorgos Keramidas2002-03-081-3/+3
| | | | | | | - Add `Ar filename' to the description of the -f option. Notes: svn path=/head/; revision=91880
* Reorder WARNS line for style.Mike Heffner2001-12-101-2/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=87629
* WARNS=2 cleanup.Mike Heffner2001-12-102-58/+70
| | | | | | | | Submitted by: Maxime Henrion <mux@qualys.com> MFC after: 2 weeks Notes: svn path=/head/; revision=87598
* Print [fddi] or [atm] tags for ARP addresses on interfaces of that type.Matthew N. Dodd2001-10-191-0/+6
| | | | Notes: svn path=/head/; revision=85123
* Print interface name for each ARP entry.Ruslan Ermilov2001-10-081-0/+3
| | | | | | | | Prodded by: Igor Podlesny <poige@morning.ru> MFC after: 1 week Notes: svn path=/head/; revision=84666
* Remove GCC'isms in CFLAGS.David E. O'Brien2001-07-201-1/+0
| | | | Notes: svn path=/head/; revision=80022
* Remove whitespace at EOL.Dima Dorfman2001-07-152-4/+4
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-2/+2
| | | | Notes: svn path=/head/; revision=79537
* - Renamed the ``proxy'' modifier of the -d flag to ``pub'',Ruslan Ermilov2001-06-072-27/+53
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=77870
* Add a missing free(3).Yaroslav Tykhiy2001-05-021-0/+1
| | | | | | | | | PR: bin/27001 Submitted by: alex <ml-freebsd-net@phobgate.de>, Matthew Emmerton <matt@gsicomp.on.ca> Notes: svn path=/head/; revision=76216
* Add the VLAN interface type to the list of ARP-capable interface types.Yaroslav Tykhiy2001-04-041-2/+5
| | | | Notes: svn path=/head/; revision=75180
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-2/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* zeropad mac address ouputBill Fumerola2001-03-081-1/+2
| | | | | | | | | PR: bin/25584 Submitted by: David Xu <davidx@viasoft.com.cn> Reviewed by: wollman, billf Notes: svn path=/head/; revision=73973
* h_errno is declared in netdb.h.Warner Losh2001-03-011-2/+0
| | | | Notes: svn path=/head/; revision=73266
* Print a diagnostic message if no interface could be determinedRuslan Ermilov2001-02-271-0/+2
| | | | | | | | | | | | when attempting to create a published ARP entry. For example: # arp -s 1.1.1.1 auto pub PR: bin/7753 Submitted by: Jonathan Hanna <pangolin@home.com> Notes: svn path=/head/; revision=73135
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-02-071-1/+1
| | | | | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins. Notes: svn path=/head/; revision=72126
* mdoc(7) police: modifiers should be marked with .Cm, not .Ar.Ruslan Ermilov2001-02-051-14/+19
| | | | Notes: svn path=/head/; revision=72052
* Make the ``arp -d hostname proxy'' really do something useful.Ruslan Ermilov2001-02-051-2/+2
| | | | | | | | | Specifically, ``proxy'' modifier tells the code to delete only Proxy ARP entry for the ``hostname''; the usual ARP entry will be unaffected by this operation. Notes: svn path=/head/; revision=72051
* Revert previous checkin ("proxy" is required in some instances).Archie Cobbs2001-02-012-2/+7
| | | | | | | Add a note to that effect to the man page. Notes: svn path=/head/; revision=71905
* Fix documentation: "proxy" is not a keyword for the arp(8) command line.Archie Cobbs2001-01-312-2/+1
| | | | Notes: svn path=/head/; revision=71854
* mdoc(7) police: Er macro usage cleanup.Ruslan Ermilov2000-11-221-2/+2
| | | | Notes: svn path=/head/; revision=69052
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-7/+7
| | | | Notes: svn path=/head/; revision=68965
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-2/+0
| | | | Notes: svn path=/head/; revision=68575
* 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