summaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
AgeCommit message (Collapse)Author
2016-08-15Checking for RTF_BROADCAST here makes no sense.Martin Pieuchot
2016-08-05Using a macro to save 4 chars is mere obfuscation.Jeremie Courreges-Anglas
2016-08-05Kill an unused macroJeremie Courreges-Anglas
...instead of leaving an XXX about it.
2016-08-02Ensure that "lim" is initialized and reset at each loop run.Jeremie Courreges-Anglas
Avoids possible invalid memory accesses. ok florian@
2016-07-31Rename the route socket to a more useful name.Jeremie Courreges-Anglas
Avoid a bunch of "warning: declaration of 's' shadows a global declaration" while here.
2016-07-31Turn two global variables into variables local to main.Jeremie Courreges-Anglas
2016-07-31Duplicated declsJeremie Courreges-Anglas
2016-05-02Kill useless CPPFLAGSJeremie Courreges-Anglas
usr.sbin/ndp has no #ifdef INET6 test, and doesn't need an explicit -I. directive. ok sha256 mpi@
2016-04-05Describe the format used by -s once, and refer to it when documenting -f.Jeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Consistent v6-speak: hostname -> nodename, proxy NDP -> ND proxyJeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Pointless commented-out lines; discussed with jmc@Jeremie Courreges-Anglas
2016-04-05etheraddr -> ether_addr, as in arp(8); discussed with jmc@Jeremie Courreges-Anglas
2016-04-04Hook up ndp -f.Jeremie Courreges-Anglas
Initial diff from Dimitris Papastamos. Support from mikeb@, ok benno@.
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@
2016-01-12Do not print an error if the list of prefixes is empty.Martin Pieuchot
This is becoming more and more comon now that the list is only used for autoconfigured prefix. From Florian Riehm.
2015-10-28Remove linkmtu and maxmtu from struct nd_ifinfo. IN6_LINKMTU can nowFlorian Obser
die and ifp->if_mtu is the one true mtu. Suggested by and OK mpi@
2015-10-25backout; many issues remain...Theo de Raadt
2015-10-25pledge the main usage patterns similar to arp(8). Some akkorokamuiTheo de Raadt
prevent doing this better, someone should try to refactor this more like arp... also figure out what dawn-of-ipv6 options can be removed. ok benno
2015-10-24chlim has been removed from the nd_ifinfo structure.Matthieu Herrb
ok kettenis@
2015-10-23ndp -n -d <addr> does dns lookups, even with -n. it should not.Sebastian Benoit
found through pledge. ok deraadt@
2015-10-05typo.Igor Sobrado
2015-09-11consistency: .Ic -> .Cm; and drop redundant .BkIngo Schwarze
2015-08-23Use simple byte pointer arithmetic and memcpy from/to aligned stackChristian Weisgerber
variables to handle the "packed" binary format passed out to userland when querying the prefix/router list. From NetBSD (Martin Husemann). ok mpi@
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-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
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-22switch ndp to display MAC addresses in 00:00:00:00:00:00 format, ok deraadt@Stuart Henderson
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-07-12andone last (i hope) accept_rtadv sysctl remnant, also found by jmcHenning Brauer
2013-10-21- -V after -tJason McIntyre
- fix usage()
2013-10-21Add rdomain support to IPv6 configuration toolsPeter Hessler
OK claudio@ and bluhm@
2013-10-07Fix a segfault in ndp -A by not freeing the buffer when not in repeatJeremie Courreges-Anglas
mode. Input from and ok millert@
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-08-09Remove dead code and useless #include and #ifdef from ndp.Alexander Bluhm
No binary change; OK deraadt@ mpi@
2013-07-19ndp used an int expire_time for time calculation. Convert thisAlexander Bluhm
into time_t. OK henning@ florian@
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
which want a "full" dump ok dlg
2013-03-11Remove the -I option, even if the ioctls for manipulating a defaultMartin Pieuchot
interface are defined, nothing use it in the kernel since the on-link assumption behavior removal back in 2004. ok mikeb@, bluhm@, florian@
2011-04-23improve line breaking in SYNOPSIS now that semantics of the .Bk macroIgor Sobrado
has changed to conform with modern groff releases. diff for route6d(8) written mostly by schwarze@, with lots of useful advice from jmc@. ok jmc@, schwarze@
2010-09-03add an EXIT STATUS section for /usr/sbin;Jason McIntyre
2009-06-25Another copy of the strange while loop seen in route(8). Add missingClaudio Jeker
RTM_VERSION check. Tested and OK sthen@, OK henning@
2009-06-17Check for the correct RTM_VERSION before accessing anything in the rt message.Claudio Jeker
Fixes a SIGBUS seen on alpha by naddy@. OK naddy@, deraadt@
2009-06-05rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@, henning@
2008-10-02get rid of some unneeded $Id stuffTheo de Raadt
2008-06-09Correctly round the sockaddrs so that ndp works on 64bit machines.Claudio Jeker
Stupid sockaddr_in6 has the worst size possible. OK henning@ deraadt@
2008-05-18another ndp(8) tweak: its description still talks about "flags"Igor Sobrado
rather than "flag", so kill the .Ar macro to have it read correctly. change suggested by jmc@. ok jmc@
2008-05-17documentation tweaks.Igor Sobrado
ok (some time ago) jmc@
2008-05-05don't install a /128 bit net route for 'proxy' ndp entriesMarkus Friedl
and show them with ndp -a, too. from KAME rev 1.121; ok henning