summaryrefslogtreecommitdiff
path: root/sys/netinet6
AgeCommit message (Collapse)Author
2006-09-03comment out impossible comparison.christos
2006-09-02- fix initializerschristos
- add const - remove dead code
2006-09-01Vastly simplify the code that copies an ICMP6 packet to two datadyoung
paths: ICMP6 reply path, and socket path.
2006-09-01Re-use macro IN6_IS_SCOPE_EMBEDDABLE().dyoung
2006-09-01Restore historical kernel behavior: let an application bind(2) andyoung
IPv6 interface address (e.g., sin6_addr fe80::200:24ff:fec3:4bac sin6_scope_id 1), set a multicast interface with setsockopt(,IPPROTO_IPV6,IPV6_MULTICAST_IF,), and sendto(2) multicast destinations with "wildcard" scope ID, 0, without error EHOSTUNREACH. Prior to this patch, sendto(2) would exit with EHOSTUNREACH, even though the scope ID was unambiguously specified both by bind(2) and setsockopt(2). This was a bug because it broke old applications. Thanks JINMEI Tatuya for the patch!
2006-08-30remove empty code.christos
2006-08-30remove impossible comparisons.christos
2006-08-30fix initializerschristos
2006-08-30Fix initializers.christos
2006-08-30add missing initializerschristos
2006-08-30declare the type of code.christos
2006-08-30comment out comparison always falsechristos
2006-08-30fix incomplete initializerchristos
2006-08-28remove extra memberschristos
2006-08-27gc unused member.christos
2006-08-25One step closer to loadable domains. Store pointers to a domain's softmatt
interrupt queues so if_detach can remove packets to removed interfaces from them. This eliminates a lot of conditional ugly code in if.c
2006-08-25Don't include <netccitt/x25.> and don't bother checking for SIOCSIFCONF_X25.matt
2006-08-17Fix all the -D*DEBUG* code that it was rotting away and did not even compile.christos
Mostly from Arnaud Lacombe, many thanks!
2006-07-23Use the LWP cached credentials where sane.ad
2006-07-12Add diagnostic checks for hardware-assisted checksum related flags intron
the mbuf which supposed to get sent out: - Complain in ip_output() if any of the IPv6 related flags are set. - Complain in ip6_output() if any of the IPv4 related flags are set. - Complain in both functions if the flags indicate that both a TCP and UCP checksum should be calculated by the hardware.
2006-07-11Clear mbuf checksum flags before passing it to ip6_output(). We mighttron
recycle a mbuf which contained a hardware provided checksum. This fixes "traceroute6" to a machine which is using a wm(4) interface that has UDP or TCP checksum offload enabled.
2006-07-08Add a missing piece from RFC 3542. KAME-NetBSD-current branchrpaulo
revision 1.1.1.2.2.5: do not call pfctlinput2(PRC_MSGSIZE) on fragmentation to avoid notification storm From Keiichi SHIMA: "In the current NetBSD code, the PRC_MSGSIZE message will be generated for every fragmented packets when a node is trying to send a big packet. That was the intermediate behavior while RFC3542 was under discussion." By (obviously) the KAME project.
2006-06-29Fix a minor printf found while reading the codeliamjfoy
2006-06-28fix the dad_count logic: if we send a packet successfully, reset the counterdrochner
for sent tries -- otherwise it gets confused if dad_count is set to >15 by the sysctl, and addresses get stuck in "tentative" state forever
2006-06-07merge FreeBSD timecounters from branch simonb-timecounterskardel
- struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-03include <netccitt/x25.h> for the SIOCSIFCONF_X25 case in in6_control.dogcow
2006-06-03Fix typo.christos
2006-06-03add 2 more ioctls that use struct ifaddr *, and remove debugging printfschristos
I accidentally committed.
2006-06-03This is ugly, but it is the simplest fix to avoid calling in the defaultchristos
case: <driver>_ioctl(ifp, SIOCSIFADDR, struct ifreq *) where it should be calling: <driver>_ioctl(ifp, SIOCSIFADDR, struct ifaddr *) and "Bad Things Happen (TM)" Returning an error is good enough because none of the drivers handle INET6. The problem here is that handling SIOCSIFADDR is a kludge. The ioctl gets passed a struct ifreq * from userland, but then in the control routines SIOCSIFADDR is handled "specially", and we call: ifp->if_ioctl(ifp, SIOCSIFADDR, struct ifaddr *) directly with the ifaddr we computed for that interface. It would be nice if we called the ioctl routine if the original struct ifreq, and computed the ifaddr, or passed it directly. This way all the ioctls would be treated the same way, and we would not have the problem of pointer overloading.
2006-05-25Make the mbuf writable before calling in6_clearscope(). Based on patch sentbouyer
by David Young on tech-kern.
2006-05-23In ip6_savecontrol(), ignore IPv4 packets.rpaulo
From JINMEI Tatuya (KAME). Should fix PR 33269.
2006-05-18Integrate Common Address Redundancy Procotol (CARP) from OpenBSDliamjfoy
'pseudo-device carp' Thanks to: joerg@ christos@ riz@ and others who tested Ok: core@
2006-05-14integrate kauth.elad
2006-05-14XXX: GCC uninitialized.christos
2006-05-07Use C99 uintXX_t types so that applications don't need to includerpaulo
sys/types.h directly (as in the past).
2006-05-07while (1) -> for (;;)rpaulo
2006-05-05Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).rpaulo
* RFC 3542 isn't binary compatible with RFC 2292. * RFC 2292 support is on by default but can be disabled. * update ping6, telnet and traceroute6 to the new API. From the KAME project (www.kame.net). Reviewed by core.
2006-04-15Coverity CID 607: Remove bogus test.christos
2006-04-15Coverity CID 608: #ifdef out dead code.christos
2006-04-15Coverity CID 740: Change constant comparisons to MCLBYTES to KASSERT and removechristos
extraneous tests.
2006-04-15Coverity CID 856: m cannot be NULL here. Remove bogus test.christos
2006-04-15Coverity CID 857: Prevent NULL deref.christos
2006-03-29Add predicate IN6_IS_SCOPE_EMBEDDABLE(__a), which is true if anddyoung
only if the address __a is the type in which the IPv6 stack embeds scope information.
2006-03-24From KAME via SUZUKI Shinsuke:rpaulo
fixed a memory leak when net.inet6.icmp6.nd6_maxqueuelen is greater than 1.
2006-03-20RFC 4191 changed the meaning of the "Reserved" Router Preferencerpaulo
value. Previously the router should treat the recieved router advertisement as having a 0 router lifetime. The RFC now says that the router should treat the "Reserved" field the same way as if it was the medium (default) preference. From the KAME project via SUZUKI Shinsuke.
2006-03-170 > len ==> len < 0rpaulo
2006-03-170 > len ==> len < 0rpaulo
2006-03-06Rename local variables called delay that shadow the delay() decl.rpaulo
Pointed out by Robert Swindells.
2006-03-05NDP-related improvements:rpaulo
RFC4191 - supports host-side router-preference RFC3542 - if DAD fails on a interface, disables IPv6 operation on the interface - don't advertise MLD report before DAD finishes Others - fixes integer overflow for valid and preferred lifetimes - improves timer granularity for MLD, using callout-timer. - reflects rtadvd's IPv6 host variable information into kernel (router only) - adds a sysctl option to enable/disable pMTUd for multicast packets - performs NUD on PPP/GRE interface by default - Redirect works regardless of ip6_accept_rtadv - removes RFC1885-related code From the KAME project via SUZUKI Shinsuke. Reviewed by core.
2006-03-05bzero -> memsetrpaulo