summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
Commit message (Collapse)AuthorAgeFilesLines
* This checkin addresses a couple of issues:qingli2008-12-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The "route" command allows route insertion through the interface-direct option "-iface". During if_attach(), an sockaddr_dl{} entry is created for the interface and is part of the interface address list. This sockaddr_dl{} entry describes the interface in detail. The "route" command selects this entry as the "gateway" object when the "-iface" option is present. The "arp" and "ndp" commands also interact with the kernel through the routing socket when adding and removing static L2 entries. The static L2 information is also provided through the "gateway" object with an AF_LINK family type, similar to what is provided by the "route" command. In order to differentiate between these two types of operations, a RTF_LLDATA flag is introduced. This flag is set by the "arp" and "ndp" commands when issuing the add and delete commands. This flag is also set in each L2 entry returned by the kernel. The "arp" and "ndp" command follows a convention where a RTM_GET is issued first followed by a RTM_ADD/DELETE. This RTM_GET request fills in the fields for a "rtm" object, which is reinjected into the kernel by a subsequent RTM_ADD/DELETE command. The entry returend from RTM_GET is a prefix route, so the RTF_LLDATA flag must be specified when issuing the RTM_ADD/DELETE messages. 2. Enforce the convention that NET_RT_FLAGS with a 0 w_arg is the specification for retrieving L2 information. Also optimized the code logic. Reviewed by: julian
* This main goals of this project are:qingli2008-12-151-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
* Cleanup of userland __P usekevlo2007-11-071-23/+23
|
* Use sizeof() for calculating the buffer size instead of hard-coded values.kevlo2007-03-061-1/+1
|
* o Remove duplicate includes.maxim2007-01-201-1/+0
| | | | Obtained from: Slava Semushin via NetBSD
* These IPv6-only tools have no explicit dependency on the INET6 macro.yar2006-07-271-1/+0
| | | | Tested with: cmp(1)
* -mdoc sweep.ru2005-11-181-16/+7
|
* supported an ndp command suboption to disable IPv6 in the given interfacesuz2005-10-192-0/+18
| | | | | | Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 week
* sync with KAME in the following point:suz2005-10-191-1/+5
| | | | | | | | - fixed a bug that "ndp ... proxy" command does not work Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks
* sync with KAME in the following points:suz2005-10-191-1/+4
| | | | | | | | | - removed compilation warnings - suppress a redundant error message when a default-router-list is empty Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks
* added an ioctl option in kernel so that ndp/rtadvd can change some ↵suz2005-10-192-10/+52
| | | | | | | | NDP-related kernel variables based on their configurations (RFC2461 p.43 6.2.1 mandates this for IPv6 routers) Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+2
|
* Fixed xref.ru2005-01-211-1/+1
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-071-4/+0
| | | | (with permission of addtional copyright holders where appropriate)
* Markup and grammar nits.ru2004-06-051-31/+23
|
* Trim whitespace at EOL.ru2004-06-041-1/+1
|
* Unbreak the build by dealing with an unexpected dependency on tcpdump sourcebms2004-03-311-0/+1
| | | | | | | present in ndp(8). The vendor branch import uses a _U_ macro to apply the GCC 'unused' attribute to the rcs ids embedded in each source file. Teach ndp about this.
* Flush stdout when -A option is used.sumikawa2004-02-101-0/+1
| | | | | Obtained from: KAME MFC after: 1 week
* fixed improper routing-message flagsuz2004-01-081-1/+1
| | | | Obtained from: KAME
* - make command line argument parsing POSIX compliant. comment fromume2003-11-132-182/+281
| | | | | | | | | | | | | deraadt NOTE: -I needs to take an arg (there's no way we can take no arg/an arg with a single option) - sscanf overrun - no variable name on prototype. - u_int32_t may not be u_long. - skipped non-host route when printing neighbor cache entries. - valid and preferred lifetimes are unsigned. - wording. Obtained from: KAME
* show maxmtu.ume2003-10-241-0/+1
| | | | Obtained from: KAME
* don't print ndp -i result if the interface is notume2003-10-171-0/+5
| | | | | | initialized Obtained from: KAME
* - NI_WITHSCOPEID was deprecatedume2003-10-171-155/+151
| | | | | | | | - use strlcpy() and snprintf() - use err() - style Obtained from: KAME
* introduced a flag bit "ND6_IFF_ACCEPT_RTADV" in the nd_ifinfo structure toume2003-08-052-3/+21
| | | | | | | | | | | control whether to accept RAs per-interface basis. the new stuff ensures the backward compatibility; - the kernel does not accept RAs on any interfaces by default. - since the default value of the flag bit is on, the kernel accepts RAs on all interfaces when net.inet6.ip6.accept_rtadv is 1. Obtained from: KAME MFC after: 1 week
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Change 'int pid' to 'pid_t pid'jmallett2002-07-251-1/+1
| | | | Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org>
* The .Nm utilitycharnier2002-07-141-3/+3
|
* Do not delete 'goto ours' routes when using -c option.sumikawa2001-08-091-0/+5
| | | | Obtained from: KAME
* mdoc(7) police:ru2001-08-071-1/+1
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-4/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Sync with recent KAME.ume2001-06-112-48/+339
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+2
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-13/+13
|
* - simplify option flagssumikawa2000-10-091-13/+11
| | | | | | | - do not print header when using -c - linklocal address are not cleared when using -c Obtained from: KAME
* sync with latest kame treeitojun2000-07-042-126/+372
|
* Add prototypecharnier2000-05-281-0/+1
|
* Slight grammar and white-space modification.phantom2000-04-201-3/+5
|
* Add missing return.shin2000-03-111-0/+1
| | | | | | | | | | "ndp" command should deletes only neighbor cache entries, but the program lacks necessary "return" after the neighbor cache entry check, so it might deletes non neighbor cache entries. (it seems that usually no problem happens.) Approved by: jkh Reviewed by: ume
* libipsec and IPsec related apps. (and some KAME related man pages)shin2000-01-064-0/+1193
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
OpenPOWER on IntegriCloud