summaryrefslogtreecommitdiff
path: root/usr.sbin/arp/arp.c
AgeCommit message (Expand)Author
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
2017-12-23As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).cheloha
2017-04-19Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has beenMartin Natano
2017-04-15Name global variable for routing socket rtsock like in ndp(8).Alexander Bluhm
2016-11-29Tweak output to keep it aligned when interfaces with big names, likeMartin Pieuchot
2016-08-27Pull in <sys/time.h> for gettimeofday()Philip Guenther
2016-05-28Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).Martin Natano
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
2016-01-26Use an unsigned int rather than an int when iterating through all 32mmcc
2015-12-08remove undocumented message about trailersTed Unangst
2015-10-14I messed up reading the call graph. -d delete does use search, so aTheo de Raadt
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
2015-10-03arp uses a non-privileged sockraw to look at the kernel arp tables.Theo de Raadt
2015-06-03Explicitly request the sockaddr_dl when doing a RTM_GET rather thanMartin Pieuchot
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-09-07Remove useless comment, snprintf and if/else.Alexander Bluhm
2014-09-03Be coherent in the way arp(8) and ndp(8) display local entries andMartin Pieuchot
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
2014-08-19Entries for broadcast addresses should also be ignored, just like localMartin Pieuchot
2014-08-11Do not try to delete RTF_LOCAL entries. Such routes are automaticallyMartin Pieuchot
2014-03-18Put AF_ROUTE socket that arp(8) operates on into the appropriate rdomain.Mike Belopuhov
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
2013-07-20arp and rarpd used an int expire_time for time calculation. ConvertAlexander Bluhm
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
2012-11-08When running route -Tx exec arp -an, arp would always use the defaultPeter Hessler
2011-01-11 Add Wake on Lan support to arp(8). This is partly based on the originalJasper Lievisse Adriaanse
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
2009-06-05more rtm->rtm_hdrlen conversionChris Cappuccio
2009-06-05One more tool that knows about other domains via -VClaudio Jeker
2008-12-12Use rtm_hdrlen to jump over the message header and to the beginning of theClaudio Jeker
2008-03-12"usage:" should precede the first statement onlyIgor Sobrado
2008-02-14backout the change to make arp(8) default to -an;Thordur I. Bjornsson
2008-02-07Oops. Better diff to enable -an by default without breakingThordur I. Bjornsson
2008-02-07make arp(8) default to -na when called with no arguments;Thordur I. Bjornsson
2007-08-24Yet another application that does not check if the RTM_VERSION is the expectedClaudio Jeker
2007-02-18Use sizeof(buf) instead of hard coded numbers.Ray Lai
2006-05-26simplify synopsis; ok deraadtJason McIntyre
2006-04-18Remove "S" from getopt(3) string, which was added in 1.32 by mistake.Moritz Jodeit
2005-04-04shrinkTheo de Raadt
2005-04-04nlist.h not neededTheo de Raadt
2005-03-29clean further, theo okHenning Brauer
2005-03-29make this a bit more readableHenning Brauer
2005-03-29add -F to force replacement of entries with -s and -fHenning Brauer