summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* rtsock requests for deleting interface address lles started to return EPERMmelifaro2015-09-271-0/+2
| | | | | | | | | instead of old "ignore-and-return 0" in r287789. This broke arp -da / ndp -cn behavior (they exit on rtsock command failure). Fix this by translating LLE_IFADDR to RTM_PINNED flag, passing it to userland and making arp/ndp ignore these entries in batched delete. MFC after: 2 weeks
* 'sin' is never used after assignment. Looking at the context, it seemsdelphij2015-09-191-1/+1
| | | | | | | | that it belongs the commented out section of code so make it part of that section. Reported by: clang static analyzer MFC after: 2 weeks
* Add static and remove unused variables.hrs2015-08-241-44/+50
|
* Remove obsolete API (SIOCGDRLST_IN6 and SIOCGPRLST_IN6) support.hrs2015-08-241-201/+0
|
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-1/+0
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-192-14/+36
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-45/+23
| |\ \
| * \ \ Merge from headsjg2013-09-052-24/+55
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Sync with HEAD.obrien2013-02-082-57/+25
| |\ \ \ \
| | \ \ \ \
| | \ \ \ \
| *-. \ \ \ \ Sync from headsjg2012-11-042-17/+1
| |\ \ \ \ \ \
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | Stop including if_var.h from userland.glebius2015-04-061-1/+0
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Sponsored by: Nginx, Inc.
* | | | | | Fix "ndp -d hostname".peter2014-07-181-1/+1
| | | | | |
* | | | | | Fix ndp(8) -f flag parsingmelifaro2014-05-092-13/+35
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | PR: bin/136661 Reminded by: Vinicius Zavam MFC after: 2 weeks
* | | | | Change the type of addr argument in dump() function to be ableae2013-12-101-4/+8
| | | | | | | | | | | | | | | | | | | | disambiguate link-local addresses from different zones.
* | | | | Remove unused macro ADVANCE() and replace ROUNDUP() macro with ALIGN().ae2013-12-101-8/+3
| | | | | | | | | | | | | | | | | | | | They aren't the same, but in our use cases ALIGN gives the same results.
* | | | | Ansify function definitions.ae2013-12-101-34/+13
| |_|_|/ |/| | |
* | | | Fix incompatibility in ICMPV6CTL_ND6_PRLIST sysctl, and SIOCGPRLST_IN6,hrs2013-08-061-36/+21
| | | | | | | | | | | | | | | | | | | | SIOCGDRLST_IN6, and SIOCGNBRINFO_IN6 ioctl. These userland interfaces treat expiration times in time_second, not time_uptime.
* | | | - Use time_uptime instead of time_second in data structures forhrs2013-08-051-30/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PF_INET6 in kernel. This fixes various malfunction when the wall time clock is changed. Bump __FreeBSD_version to 1000041. - Use clock_gettime(CLOCK_MONOTONIC_FAST) in userland utilities. MFC after: 1 month
* | | | Include descriptions of the flags and fields printed when dumping themarkj2013-05-231-0/+30
| |_|/ |/| | | | | | | | | | | | | | | | | IPv6 prefix list. Reviewed by: hrs MFC after: 1 week
* | | Retire struct sockaddr_inarp.glebius2013-01-311-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@
* | | Add no_prefer_iface option.ume2013-01-092-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It stops treating the address on the interface as special by source address selection rule even when the interface is outgoing interface. This is desired in some situation. Requested by: hrs Reviewed by: IHANet folks including hrs MFC after: 1 week
* | | Minor wording improvments to some manual pageseadler2012-12-161-2/+2
| | | | | | | | | | | | | | | | | | Approved by: bcr (mentor) Obtained from: DragonflyBSD (a5294ca835317c68c919ab43936da4f05ab6e926) MFC after: 3 days
* | | - Move definition of V_deembed_scopeid to scope6_var.h.hrs2012-12-051-48/+6
| |/ |/| | | | | | | | | - Deembed scope id in L3 address in in6_lltable_dump(). - Simplify scope id recovery in rtsock routines. - Remove embedded scope id handling in ndp(8) and route(8) completely.
* | Remove "prefer_source" address selection option. FreeBSD has had anhrs2012-07-092-17/+1
|/ | | | | implementation of RFC 3484 for this purpose for a long time and "prefer_source" was never implemented actually. ND6_IFF_PREFER_SOURCE macro is left intact.
* - Merge changes to the base system to support OFED. These includejeff2011-03-211-2/+6
| | | | | a wider arg2 for sysctl, updates to vlan code, IFT_INFINIBAND, and other miscellaneous small features.
* Use ether_ntoa instead of home-grown version.delphij2011-01-081-9/+5
| | | | Noticed by: Boris Kochergin <spawk acm poly edu>
* Ethernet vlan(4) interfaces have valid Ethernet link layer addresses butjhb2010-08-061-0/+1
| | | | | | | | use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses. Reviewed by: syrinx (bsnmpd) MFC after: 1 week
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* We use gmt2local code from tcpdump and gnuc.h is no longer being useddelphij2009-12-131-2/+0
| | | | there, so remove this dummy header.
* Improve flexibility of receiving Router Advertisement andhrs2009-09-122-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | automatic link-local address configuration: - Convert a sysctl net.inet6.ip6.accept_rtadv to one for the default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a global knob. The default value of the sysctl is 0. - Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a sysctl net.inet6.ip6.auto_linklocal to one for its default value. The default value of the sysctl is 1. - Make ND6_IFF_IFDISABLED more robust. It can be used to disable IPv6 functionality of an interface now. - Receiving RA is allowed if ip6_forwarding==0 *and* ND6_IFF_ACCEPT_RTADV is set on that interface. The former condition will be revisited later to support a "host + router" box like IPv6 CPE router. The current behavior is compatible with the older releases of FreeBSD. - The ifconfig(8) now supports these ND6 flags as well as "nud", "prefer_source", and "disabled" in ndp(8). The ndp(8) now supports "auto_linklocal". Discussed with: bz and jinmei Reviewed by: bz MFC after: 3 days
* In the NEXTADDR macro use SA_SIZE() rather than directly usingbz2009-09-051-1/+1
| | | | | | | | | | sizeof(), as introduced in r186119, for advancing the current position into the buffer. See comment in net/route.h for a description of the difference. This makes ndp -s work again. Reviewed by: qingli X-MFC after: now
* 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
OpenPOWER on IntegriCloud