summaryrefslogtreecommitdiff
path: root/usr.sbin/arp
AgeCommit message (Collapse)Author
2016-08-27Pull in <sys/time.h> for gettimeofday()Philip Guenther
ok deraadt@
2016-05-28Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).Martin Natano
ok deraadt jca
2016-04-05Describe the format used by -s once, and refer to it when documenting -f.Jeremie Courreges-Anglas
Discussed with jmc@
2016-03-23tweak previous;Jason McIntyre
2016-03-23Kill undocumented "pro" command. It's a no-op since the 90s!Martin Pieuchot
2016-03-23Rename 'rtn' to 'error' for coherency.Martin Pieuchot
2016-03-23Remove code to print the never set SIN_PROXY bit. This flag is only usedMartin Pieuchot
to set the 33rd bit of a 32bit address in the routing table. ok millert@
2016-01-26Use an unsigned int rather than an int when iterating through all 32mmcc
bits in the form: for (i = 1; i; i <<= 1) This avoids undefined operations when shifting into and out of the highest-order bit. ok millert@
2015-12-08remove undocumented message about trailersTed Unangst
2015-12-08jmc discovered more references to trailers. i think it's safe to removeTed Unangst
mention that they are no longer supported. the six people who know what trailers are are surely aware they aren't support anymore.
2015-11-01replace "can not" with "cannot";Jason McIntyre
2015-10-14I messed up reading the call graph. -d delete does use search, so aTheo de Raadt
late pledge is not possible in this way.
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07use new tame "route" feature when possibleTheo de Raadt
2015-10-05correct a rtget() error checkSebastien Marie
this function could only return 0 or 1, and 1 on error. avoid to deref an uninitialised variable if rtget() return an error. ok millert@ benno@ deraadt@
2015-10-03arp uses a non-privileged sockraw to look at the kernel arp tables.Theo de Raadt
the function to do that is called a number of times, but as needed. hoist it upwards into initization, then tame "stdio dns inet" is possible in most code paths. (there may be further work to do here here) i believe florian helped me with this.
2015-07-27use file system path (.Pa) semantic markup macros where appropriate.Igor Sobrado
ok jmc@
2015-06-03Explicitly request the sockaddr_dl when doing a RTM_GET rather thanMartin Pieuchot
assuming that it will be in the gateway sa. Fixes a regression introduced with the support of multiple connected routes, found the hardway by deraadt@. ok claudio@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-09-07Remove useless comment, snprintf and if/else.Alexander Bluhm
OK mpi@
2014-09-03Be coherent in the way arp(8) and ndp(8) display local entries andMartin Pieuchot
use a new flag `l' to ditinguish them. Also skip broadcast entries, they are not reall ARP entries and will never be resolved to anything, requested by deraadt@. ok bluhm@
2014-08-22print leading 0's in MAC addresses again, ok deraadtStuart Henderson
2014-08-21Change the output of arp(8) to match what ndp(8) does and include theMartin Pieuchot
expire timer. This will makes it easier to add further information in a coherent way between these tools for local and broadcast entries. This new view displays either symbolic names (by default) or numerical addresses (with "-n") for hosts but not both at the same time, just like ndp(8), route(8) or netstat(1) do. ok henning@
2014-08-19Entries for broadcast addresses should also be ignored, just like localMartin Pieuchot
entries. ok florian@, mikeb@, henning@
2014-08-11Do not try to delete RTF_LOCAL entries. Such routes are automaticallyMartin Pieuchot
created /deleted by the kernel when an IP address is added/removed on/from an interface and should not be manipulated by userland tools. ok henning@, jca@
2014-05-09my previous attempt to fix the renaming of the inet(3) pages was wrong;Jason McIntyre
this fixes those by referencing the correct page, and cleans up the netintro/ inet entries; all this on the advice (and ok) of guenther!
2014-05-08inet(3) -> inet_net(3);Jason McIntyre
2014-03-18Put AF_ROUTE socket that arp(8) operates on into the appropriate rdomain.Mike Belopuhov
Previously "arp -V 1 -d 10.0.0.1" would hang forever since while the target rdomain was passed in the rtm, the AF_ROUTE socket was always created in the rdomain 0. Due to the logic in route_input (rtsock.c) route socket's rdomain is compared against the target rdomain of the request and reply is generated only when they match. In our case rdomains were different which cased arp(8) to hang waiting for the reply that would never be sent. ok deraadt
2014-02-26This is a lie, the default is not 0. It is inherited from the process.Claudio Jeker
OK by many
2014-02-26There is no need to init a global to 0Claudio Jeker
2013-08-15Reduce the warnings when arp, rarp, ndp are compiled with WARNINGS=yes.Alexander Bluhm
warning: declaration of 'time' shadows a global declaration No binary change; OK lteo@ florian@ henning@ mikeb@ millert@
2013-07-20arp and rarpd used an int expire_time for time calculation. ConvertAlexander Bluhm
this into time_t. OK benno@
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
which want a "full" dump ok dlg
2012-11-08When running route -Tx exec arp -an, arp would always use the defaultPeter Hessler
routing domain. Fix it so we use the process rdomain, but still allow command line overrides. noticed by, and OK, mikeb@
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2011-09-01grammar fix; from BrynetJason McIntyre
2011-03-13consistently use "Wake on LAN (WoL)"; i don;t care if anyone wants toJason McIntyre
change that, but let's keep it consistent; ok stsp
2011-01-11oops! missing macro in previous;Jason McIntyre
2011-01-11 Add Wake on Lan support to arp(8). This is partly based on the originalJasper Lievisse Adriaanse
wake(8) program. One can specify an interface to send on, or simply broadcast on all available interfaces. Initial input from stsp@, further help from claudio@ and deraadt@. ok claudio@ deraadt@ manpage bits ok jmc@
2009-09-27a usage line got too long; ok jmcTheo de Raadt
2009-06-25Same code as in route(8) same RTM_VERSION check missing.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-05tweak -V;Jason McIntyre
2009-06-05more rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@
2009-06-05One more tool that knows about other domains via -VClaudio Jeker
2009-04-29+.Xr ndp 8Jason McIntyre
from Bob Van Zant, freebsd docs/134053
2008-12-12Use rtm_hdrlen to jump over the message header and to the beginning of theClaudio Jeker
sockaddrs included in the message. This makes the code more robust when kernel and userland are out of sync. put it in deraadt@
2008-03-12"usage:" should precede the first statement onlyIgor Sobrado
ok jmc@
2008-02-14backout the change to make arp(8) default to -an;Thordur I. Bjornsson
Remove that blurp from the man page also. requested by deraadt@;
2008-02-11bump Mdocdate for pages committed in "febuary", necessary becauseJason McIntyre
of a typo in rcs.c;
2008-02-08fix Mdocdate.Jason McIntyre
developers please note: you do not have to edit this field when you make changes to man pages. it's a cvs keyword which expands automatically.