summaryrefslogtreecommitdiff
path: root/sys/netinet6/nd6_nbr.c
AgeCommit message (Collapse)Author
2013-05-31Remove a bunch of sockaddr_in6 pointer casts and replace othersAlexander Bluhm
with sin6tosa() or satosin6() inline functions. This allows the compiler to check the types more strictly. OK mpi@
2013-03-07Remove the IFAFREE() macro, the ifafree() function it was calling alreadyMartin Pieuchot
check for the reference counter. ok mikeb@, miod@, pelikan@, kettenis@, krw@
2013-03-04Replace the cast to struct in6_ifaddr pointer with the ifatoia6() macro.Alexander Bluhm
No binary change. OK claudio@
2013-03-03Make sure that IPv6 source address selection only chooses a CARPAlexander Bluhm
address if the interface is in master state. Disable duplicate address detection on CARP interfaces as the peer may have the same addresses. Test and OK sthen@ florian@ benno@ camield@
2012-05-16rfc 4861 mandates that target link local address must be includedMike Belopuhov
with a neighbour advertisment sent to a multicast address; nits & ok bluhm
2012-01-11Simplify the #if CARP and if (IFT_CARP) dance in nd6_ns_input().Alexander Bluhm
Fix a white space bug while there. No functional change. ok mikeb@ robert@ henning@
2012-01-03To access the ifaddr of an in_ifaddr or in6_ifaddr struct, it isAlexander Bluhm
cleaner to access the first member via ia_ifa instead of casting. No binary change. ok henning@ krw@
2011-11-24rdomain support for IPv6sperreault
ok mikeb
2011-10-15dont define proxydl in nd6_na_output when NCARP = 0 as unusedNigel Taylor
OK sthend@
2011-10-14Prevent carp slaves from sending IPv6 neighbour advertisements for carpStefan Sperling
addresses. Fixes "duplicate IP6 address" warnings, appearing since we started accepting IPv6 neighbour discovery packets on carp interfaces. ok henning
2011-07-26Accept neighbor discovery packets from source IPv6 addresses forAlexander Bluhm
which we have a cloning or cloned route. The old check was based on configured interface addresses, now we use a route lookup. This allows us to use prefixes for the local network that ospf6d has added. ok claudio@
2011-03-09Log MAC address changes in the IPv6 neighbor discovery protocolAlexander Bluhm
cache as "ndp info overwritten". This makes the behavior similar to ARP. ok todd@, deraadt@, henning@, giovanni@, claudio@
2010-02-08Destatic and ansify.Joel Sing
ok claudio@ naddy@
2008-11-25delay /etc/netstart until IPv6-DAD (dup-address-detection) is completed.Markus Friedl
ok fries, hshoexer, claudio
2008-10-01If a neighbor solictation isn't from the unspecified address, make sureClaudio Jeker
that the source address matches one of the interfaces address prefixes. From NetBSD, tested by todd@ and naddy@
2008-09-17remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ mpf@
2008-06-11ANSIfy to sync with KAME. From Karl Sjodahl <dunceor@gmail.com>.Ryan Thomas McBride
ok todd deraadt naddy bluhm
2008-05-11Try harder to avoid corrupting the mbuf pool. Stuff any mbuf chain inKenneth R Westerback
ln_hold or la_hold into temporary storage and null ln_hold or la_hold before manually processing the mbuf chain. Discard the mbuf chain if it is put back in the hold area. ok claudio@ markus@
2008-04-18use arc4random_uniform() for random number requests that are not aDamien Miller
power of two. use arc4random_bytes() when requesting more than a word of PRNG output. ok deraadt@
2008-03-04fix use-after-free: pfxlist_onlink_check() might free rt_llinfo forMarkus Friedl
the current route, so make sure RTF_LLINFO is still set; fixes pr 5711; with krw@ and claudio@; ok jsing@
2008-02-05Move carp load balancing (ARP/IP) to a simpler configuration scheme.Marco Pfatschbacher
Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
2007-12-09take advantage of M_ZEROHans-Joerg Hoexer
ok claudio gilles
2007-06-08kill arcnet leftovers, some pt out by Mike Belopuhov <mkb@crypt.org.ru>,Henning Brauer
some I found afterwards, ok dlg
2007-06-01apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.Henning Brauer
we need a pointer to the inpcb to decide, which was not previously passed to ip6_output, so this diff is a little bigger. from itojun, ok ryan
2007-03-18Add IP load balancing support for carp(4).Marco Pfatschbacher
This provides a similar functionality as ARP balancing, but also works for traffic that comes across routers. IPv6 is supported as well. The configuration scheme will change as soon we have sth better. Also add support for changing the MAC address on carp(4) interfaces. (code from mcbride) Tested by pyr@ and reyk@ OK mcbride@
2006-11-17change semantics of ff01::/16 to interface local multicastJun-ichiro itojun Hagino
(to sync up with more recent IPv6 spec) ok from: deraadt mcbride
2006-06-16adjust functions dealing with the routing table to take a table ID asHenning Brauer
parameter so they can work on alternate tables. table 0 hardcoded for many callers yet, that will be adapted step by step. input + ok claudio norby hshoexer
2006-06-16Spelling.Christopher Pascoe
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-02-06typos from alexey dobriyan;Jason McIntyre
2005-02-10remove #if 0'ed code (which was experimental and should never be used)Jun-ichiro itojun Hagino
2005-01-18Rewriting the lladdr can now be done without using mbuf tags.Marco Pfatschbacher
Advertisements run through the carp interface first. So we just take the address from ifp0. While we're there, also remove carp_macmatch6, which isn't used anymore. Proposed by mcbride@ ok mcbride@, pascoe@
2004-12-21Check that if_type != IFT_CARP before using ifp->if_carp.Ryan Thomas McBride
2004-10-28treat IFT_CARP like IFT_PROPVIRTUAL, ryan daniel okHenning Brauer
2003-10-31Add IPv6 support to CARP.Ryan Thomas McBride
ok deraadt@
2003-06-27split ND6 cache timer management to per-entry. increased accuracy,Jun-ichiro itojun Hagino
no O(N) loop. sync w/ kame. marc tested, daniel ok
2003-06-24remove unneeded checks of accept_rtadv. from kameJun-ichiro itojun Hagino
2003-06-24use time.tv_sec directly, rather than having time_second (freebsd NIH).Jun-ichiro itojun Hagino
2003-05-22remove break after returnJun-ichiro itojun Hagino
2003-05-14make PULLDOWN_TEST codepath the default (has been default for a long time).Jun-ichiro itojun Hagino
markus ok
2002-06-09whitespace cleanupJun-ichiro itojun Hagino
2002-06-08splnet -> splsoftnet where appropriateJun-ichiro itojun Hagino
2002-06-08KNFJun-ichiro itojun Hagino
2002-06-08sync with latest KAME in6_ifaddr/prefix/default router manipulation.Jun-ichiro itojun Hagino
behavior changes: - two iocts used by ndp(8) are now obsolete (backward compat provided). use sysctl path instead. - lo0 does not get ::1 automatically. it will get ::1 when lo0 comes up.
2002-05-29attach nd_ifinfo structure to if_afdata.Jun-ichiro itojun Hagino
split IPv6 MTU (advertised by RA) from real link MTU. sync with kame
2002-05-28remove #define for kame portabilityJun-ichiro itojun Hagino
2002-03-15s/0/NULL/ for pointer assignment. sync w/kameJun-ichiro itojun Hagino
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-07whitespace/comment sync with kameJun-ichiro itojun Hagino
2001-11-30unifdef OLDIP6OUTPUTJun-ichiro itojun Hagino