Up to [cvs.NetBSD.org] / src / sys / netinet6
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: jmcneill-base
Revision 1.112 / (download) - annotate - [selected], Mon Oct 29 16:54:42 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base1,
vmlocking-nbase,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2,
mjf-devfs
Changes since 1.111: +15 -9
lines
Diff to previous 1.111 (colored)
The IPv6 stack labels incoming packets with an m_tag whose payload is a struct ip6aux. A struct ip6aux used to contain a pointer to an in6_ifaddr, but that pointer could become a dangling reference in the lifetime of the m_tag, because ip6_setdstifaddr() did not increase the in6_ifaddr's reference count. I have removed the pointer from ip6aux. I load it with the interesting fields from the in6_ifaddr (an IPv6 address, a scope ID, and some flags), instead.