summaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
AgeCommit message (Collapse)Author
2019-01-22PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callsKenneth R Westerback
where the "wrong" #define was used. ok dlg@
2019-01-21Zap unused ntop_bufkn
Last usage got removed with r1.9 in 2001. sure deraadt
2018-07-13Unused variables.Kenneth R Westerback
ok henning@
2018-06-17fix memory leaks: freeaddrinfo() the data from getaddrinfo().Sebastian Benoit
From Thomas Barabosch <thomas DOT barabosch AT fkie DOT fraunhofer DOT de> Thanks. ok florian@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2017-10-25Remove dead code, found by jsg@.Martin Pieuchot
ok jsg@, florian@
2017-08-09the recent adjustment of -i means usage() fits nicely onJason McIntyre
two lines now, instead of three;
2017-08-09Remove knob and always do neighbor unreachable detection.Florian Obser
2017-08-09accept_rtadv doesn't do anything since some time.Florian Obser
OK mpi
2017-07-13Simplify usage and man page synopsis after removal of prefix list andFlorian Obser
default router flags. Pointed out and diff from jcm@, OK me While reviewing the diff I stumbled upon the H flag, which is now useless, too. jmc suggested that I commit his diff and zap H at the same time.
2017-07-12Remove defunct code, the kernel no longer providesFlorian Obser
ICMPV6CTL_ND6_DRLIST and ICMPV6CTL_ND6_PRLIST sysctls since it no longer tracks that information. We can no longer flush or list the prefix list or the default router list. Pointed out by & OK mpi
2017-04-15Take implementation for getsocket() from arp(8). This bringsAlexander Bluhm
routing table filter and pledge(2) to ndp(8) modes -s and -d. OK florian@
2017-04-15Let ndp(8) use the process's current routing table by default.Alexander Bluhm
from Pierre Emeriaud; OK jca@ claudio@ Sync code and man page with arp(8). OK florian@
2016-11-29Tweak output to keep it aligned when interfaces with big names, likeMartin Pieuchot
vether0 are used. ok jca@, deraadt@
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@