summaryrefslogtreecommitdiff
path: root/sys/netinet6
AgeCommit message (Collapse)Author
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
the sysctl link sets are processed, and remove redundancy. Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate lines of code.
2014-02-20Bail out in case m_pulldown failed.joerg
2014-01-15Remove dead code.roy
2014-01-15If the address matches a cloning route, it is also a neighbor.roy
This allows us to use prefixes which userland may have added.
2014-01-13Remove the now un-used function in6ifa_ifplocaladdr.roy
2014-01-13When handling NS/NA we need to check our prefix list instead of ourroy
address list to work out if it came from a valid neighbor.
2014-01-02Allow kernels compiled with INET+INET6 to be booted as IPv4-only or IPv6-only.pooka
2013-12-17Instead of voodo casts use simple byte pointer arithmetic and memcpy tomartin
create the "packed" binary format we pass out to userland when querying the router/prefix list.
2013-11-23convert from CIRCLEQ to TAILQ.christos
2013-11-21Revert previous and solve in a different way, using __unused. Fixesriz
building with MRT6DEBUG. ok martin.
2013-10-25Mark a variable as used only in diagnostic kernelsmartin
2013-10-19define constants for scopeid function flags.christos
2013-10-19add scopeid functionschristos
2013-10-18convert a DIAGNOSTIC / panic into a KASSERTMSG().mrg
2013-10-04check result of setscope, from logan.christos
2013-10-03check sockopt_get() error, from logan.christos
2013-09-14Remove unused variablemartin
2013-09-14Remove unused variable and ifdef some others like their usemartin
2013-09-11Include BRDADDR and NETMASK to the v4 ioctls we ban for v6; from FreeBSD.christos
Remove X25 stuff which has been GC'ed. XXX: pullup-5,6
2013-08-30draft-gont-6man-ipv6-atomic-fragment-00 is now RFC 6949 (Loganaden Velvindronchristos
logan at elandsys dot com)
2013-06-29- Rewrite parts of pfil(9): use array to store hooks and thus be more cachermind
friendly (there are only few hooks in the system). Make the structures opaque and the interface more strict. - Remove PFIL_HOOKS option by making pfil(9) mandatory.
2013-06-20Move the detaching and making tentative addresses out if in6_if_uproy
and into in6_if_link_up. This fixes a possible panic where link is up but not the interface. Note that a better solution would be to listen to the routing socket in the kernel, but I don't know how to do that. Reachable Router tests for IFF_UP as well.
2013-06-11When an interface link state changes to down, mark all attached IPv6roy
addresses as detached. Likewise, when the link state changes to up, mark all detached IPv6 as tentative and start DAD on them. Advertised router reachability now checks that link state is not down. This means that when an interface link state changes, the default IPv6 router may change as well.
2013-06-05IPSEC has not come in two speeds for a long time now (IPSEC == kame,christos
FAST_IPSEC). Make everything refer to IPSEC to avoid confusion.
2013-05-29Generate RTM_NEWADDR when adding a pre-existing IPv6 address.roy
2013-05-23Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.msaitoh
2013-05-21Disable nd6_newaddrmsg debugroy
2013-05-21For IPv6, emit RTM_NEWADDR once DAD completes and also when address flagroy
changes. Tentative addresses are not emitted. Version bumped so userland can detect this behaviour change.
2013-04-27Systematically include sys/featuretest.h when _NETBSD_SOURCE is used.joerg
Some are redundant, but make verification with grep much easier.
2013-04-12PR/47738: connect(2) to 239.x.y.z should return error but does not.christos
2013-03-18Initialize variable used as (conditional) result parameter.gdt
ip6_insertfraghdr either sets a result parameter or returns an error. While the caller only uses the result parameter in the non-error case, knowing that requires cross-module static analysis, and that's not robust against distant code changes. Therfore, set ip6f to NULL before the function call that maybe sets it, avoiding a spuruious warning and changing the future possible bug from an unitialized dereference to a NULL deferrence.
2013-03-01Retire OSI network stack. OK core@joerg
2013-02-18PR/47576: Takahiro HAYASHI: Avoid crash destroying tap0 after deletingchristos
it's link-local address.
2013-01-28Set the socket family for the network mask.joerg
2013-01-25don't return hlim when asked for multicast loop flagkefren
2013-01-24Use rt_getkey.joerg
2013-01-06PR/47408: Anthony Mallet: sendto(2) issue with IPv6 UDP datagramschristos
- don't connect when the local port is 0, just set the local port number. - remove redundant assignment XXX: pullup-6
2012-11-29Add a new sysctl to mark ports as reserved, so that they are not used inchristos
the anonymous or reserved port allocation.
2012-10-11PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass thechristos
change up to the caller.
2012-09-27Loganaden Velvindron:christos
From "http://tools.ietf.org/html/draft-ietf-6man-ipv6-atomic-fragments-00": A host that receives an IPv6 packet which includes a Fragment Header with the "Fragment Offset" equal to 0 and the "M" bit equal to 0 MUST process such packet in isolation from any other packets/ fragments, even if such packets/fragments contain the same set {IPV6 Source Address, IPv6 Destination Address, Fragment Identification}. That is, the Fragment Header of "atomic fragments" should be removed by the receiving host, and the resulting packet should be processed as a non-fragmented IPv6 datagram. Additionally, any fragments already queued with the same set {IPV6 Source Address, IPv6 Destination Address, Fragment Identification} should not be discarded upon receipt of the "colliding" IPv6 atomic fragment, since IPv6 atomic fragments do not really interfere with "normal" fragmented traffic.
2012-08-24Remove stray #undef, probably someone's debugging leftover from long ago.dholland
2012-07-21Add comments describing parameter handling for ip6_insertfraghdr.gdt
Depending on compiler options, this code can be involved in an (apparently) spurious compiler warning. However, it was not immediately obvious the the compiler was wrong.
2012-07-01Remove the wrapper of frag6_input(), restore the behaviour changed in r1.50.rmind
Fix ip6_reass_packet() wrapper used by NPF. Remove #if 0 code for handling overlaping fragments - IPv6 desupported them anyway. Convert to kmem(9).
2012-06-25Some fun in trying to work out what was broken with gcc-4.1 toabs
trigger the following warning when gcc-4.5 was silent: nd6_rtr.c: In function 'nd6_ra_input': nd6_rtr.c:788: warning: 'ext' may be used uninitialized in this function Eventually determined that it was not unreasonable for gcc-4.1 to bleat in this case as there is a nasty 'goto insert' which could indeed have resulted in an uninitialised variable use. Yay gcc 4.1.
2012-06-25rename rfc6056 -> portalgo, requested by yamtchristos
2012-06-234 new sysctls to avoid ipv6 DoS attacks from OpenBSDchristos
2012-06-22PR/46602: Move the rfc6056 port randomization to the IP layer.christos
2012-03-22remove KAME IPSEC, replaced by FAST_IPSECdrochner
2012-03-13Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls withelad
something meaningful. All relevant documentation has been updated or written. Most of these changes were brought up in the following messages: http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html Thanks to christos, manu, njoly, and jmmv for input. Huge thanks to pgoyette for spinning these changes through some build cycles and ATF.
2012-02-05ip6_output: check for rtcache_setdst() error, which may happen if runningrmind
out of memory.