summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
AgeCommit message (Collapse)Author
2005-09-19remove the unused in6_ifindex2scopeid()Brad Smith
if at all, it works with site-local addresses whose fate is uncertain to say the least From drochner NetBSD ok deraadt@
2004-10-07missing dohooks(), needed for (em0:network) style notation with v6, was notHenning Brauer
updated properly in all cases. from cedric
2004-08-24revert. itojun notes that 128 is ok because of bitlen check.Ted Unangst
add a comment to this effect since many of us were confused. ok deraadt@
2004-08-21correct bounds checks. found at/by Coverity.Ted Unangst
ok deraadt@
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2004-06-17correct multicast handling for special groups (like solicited node multicast).Jun-ichiro itojun Hagino
from jinmei@kame
2004-06-15avoid creating multiple multicast filter entry for the same group.Jun-ichiro itojun Hagino
notified from Patrick Latifi, deraadt ok
2004-02-23avoid touching out-of-bound memory if len == 128.Jun-ichiro itojun Hagino
Ted Unangst via Colin Percival
2004-01-13Expose in6_ifremloop() and in6_ifaddloop() so that they can be used by carp.Ryan Thomas McBride
ok henning@ millert@ itojun@
2003-12-10use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULLJun-ichiro itojun Hagino
to check if interface exists, as (1) if_index will have different meaning (2) ifindex2ifnet could become NULL when interface gets destroyed, when we introduce dynamically-created interfaces. markus ok
2003-06-24use time.tv_sec directly, rather than having time_second (freebsd NIH).Jun-ichiro itojun Hagino
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-17do not differentiate manually configured address from autoconfigured onesJun-ichiro itojun Hagino
wrt prefix management; - always earn a reference to the prefix when an address is configured (by ioctl). - always delete the prefix when an address that has the last referene is manually removed. The change should solve the problem raised in KAME-snap 6989. sync w/kame
2002-09-23better "ifconfig ipv6addr deprecated" flag handling. sync w/kameJun-ichiro itojun Hagino
2002-09-11KNF - return is not a function. sync w/kameJun-ichiro itojun Hagino
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-11silence some of log(), as the codepath will be visited for IPv6-non-capableJun-ichiro itojun Hagino
interfaces too and can be annoying. net.inet6.icmp6.nd6_debug will re-enable them.
2002-06-09whitespace cleanupJun-ichiro itojun Hagino
2002-06-08splnet -> splsoftnet where appropriateJun-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-06-08in6_len2mask is a duplicate of in6_prefixlen2mask. unify. sync w/kameJun-ichiro itojun Hagino
2002-06-08on SIOCAIFADDR_IN6 check if sin6_len is sane. sync w/kameJun-ichiro itojun Hagino
2002-06-07styleJun-ichiro itojun Hagino
2002-06-07whitespace sync w/kameJun-ichiro itojun Hagino
2002-06-07'fall through' is not a valid LINT keyword.Jun-ichiro itojun Hagino
2002-06-07remove support for deprecated ioctls (EINVAL). sync w/kameJun-ichiro itojun Hagino
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-29move per-interface ip6/icmp6 stat to ifnet->if_afdata. sync w/kameJun-ichiro itojun Hagino
2002-05-23simplify condition to perform DAD. sync w/kameJun-ichiro itojun Hagino
2002-03-23correct arg to bcmp(). need to compare 15 bytes, not 3 bytes. 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-07-18avoid using malloc() during interupt context for multicast kludge entry.Jun-ichiro itojun Hagino
allocate it on interface initialization.
2001-06-09No need for net/net_osdep.hAngelos D. Keromytis
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-02-16cosmetic. add missing IFAFREE on failure caseJun-ichiro itojun Hagino
2001-02-16kill register declarations. to sync with kame better.Jun-ichiro itojun Hagino
2001-02-07turn off duplicated address detection when interface address gets deleted.Jun-ichiro itojun Hagino
sync with kame
2001-01-18workaround; be sure to initialize nd6 interface information when IPv6Jun-ichiro itojun Hagino
interface address gets added. this will avoid presenting EMSGSIZE when outgoing interface is down (and never brought up). sync with kame.
2000-11-11do not panic on "ifconfig lo0 inet6 fe80::1 -alias". KAME PR 295.Jun-ichiro itojun Hagino
(NOTE: only root can do it)
2000-10-06remove now-obsolete SIOCSIFPHY* handling in in{6,}_control.Jun-ichiro itojun Hagino
sync with kame.
2000-07-12correct rtentry reference count in in6_ifloop_request().Jun-ichiro itojun Hagino
if you reconfigure inet6 too much, the reference count can go into negative by mistake. KAME in6.c 1.98 -> 1.99.
2000-04-27use of free(ia) in #if 0.Jun-ichiro itojun Hagino
From: Lennart Augustsson <lennart@augustsson.net>
2000-04-17revisit in6_ifattach(). (1) make it more persistent about initializaing anJun-ichiro itojun Hagino
interface (2) cleanup interface id selection. run NUD on p2p interface (required by spec for bidir p2p interface). add "ndp -i interface" (can tweak per-interface ND flag). (sync with more recent kame)
2000-03-22comment out ifconfig undo code. they are necessary to avoid memoryJun-ichiro itojun Hagino
leakage, however, was too strict that they disallow multiple address from same prefix to be assigned (when rtinit returns EEXIST). we'll need to improve it.
2000-03-12undo interface address addition if in6_ifinit fails.Jun-ichiro itojun Hagino
2000-03-02do not add ifa_dstaddr for non-pointopoint interface. IPv6 has noJun-ichiro itojun Hagino
concept for "broadcast".
2000-02-28bring in recent KAME changes (only important and stable ones, as usual).Jun-ichiro itojun Hagino
- remove net.inet6.ip6.nd6_proxyall. introduce proxy NDP code works just like "arp -s". - revise source address selection. be more careful about use of yet-to-be-valid addresses as source. - as router, transmit ICMP6_DST_UNREACH_BEYONDSCOPE against out-of-scope packet forwarding attempt. - path MTU discovery takes care of routing header properly. - be more strict about mbuf chain parsing. - nuke xxCTL_VARS #define, they are for BSDI. - disable SIOCSIFDSTADDR_IN6/SIOCSIFNETMASK_IN6 ioctl, they do not fit IPv6 model where multiple address on interface is normal. (kernel side supports them for a while for backward compat, the support will be nuked shortly) - introduce "default outgoing interface" (for spec conformance in very rare case)
2000-02-07fix ifa refcnt'ing.Jun-ichiro itojun Hagino
fix include file path.
2000-02-04more coverage of in6_ifdetach()'s cleanup process.Jun-ichiro itojun Hagino
bug fix in SIOCGIFADDR_IN6 (point to point case).