diff options
author | 2003-05-14 17:46:23 +0000 | |
---|---|---|
committer | 2003-05-14 17:46:23 +0000 | |
commit | 248aa77217bbcaace95e8cc42f95ee45702acffb (patch) | |
tree | c0856c0b2d5843a5614901707379797499fe345b | |
parent | Fix stupid typo in example. (diff) | |
download | wireguard-openbsd-248aa77217bbcaace95e8cc42f95ee45702acffb.tar.xz wireguard-openbsd-248aa77217bbcaace95e8cc42f95ee45702acffb.zip |
nuke !PULLDOWN_TEST case. (leftover from yesterday)
-rw-r--r-- | sys/netinet/ip6.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h index 402d3a77168..a664acd38a8 100644 --- a/sys/netinet/ip6.h +++ b/sys/netinet/ip6.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6.h,v 1.9 2001/12/06 03:28:49 itojun Exp $ */ +/* $OpenBSD: ip6.h,v 1.10 2003/05/14 17:46:23 itojun Exp $ */ /* $KAME: ip6.h,v 1.14 2000/10/09 01:04:09 itojun Exp $ */ /* @@ -208,41 +208,6 @@ struct ip6_frag { #ifdef _KERNEL /* - * IP6_EXTHDR_CHECK ensures that region between the IP6 header and the - * target header (including IPv6 itself, extension headers and - * TCP/UDP/ICMP6 headers) are continuous. KAME requires drivers - * to store incoming data into one internal mbuf or one or more external - * mbufs(never into two or more internal mbufs). Thus, the third case is - * supposed to never be matched but is prepared just in case. - */ - -#define IP6_EXTHDR_CHECK(m, off, hlen, ret) \ -do { \ - if ((m)->m_next != NULL) { \ - if ((m)->m_flags & M_EXT) { \ - if ((m)->m_len < (off) + (hlen)) { \ - ip6stat.ip6s_exthdrtoolong++; \ - m_freem(m); \ - return ret; \ - } \ - } else { \ - if ((m)->m_len < (off) + (hlen)) { \ - ip6stat.ip6s_exthdrtoolong++; \ - m_freem(m); \ - return ret; \ - } \ - } \ - } else { \ - if ((m)->m_len < (off) + (hlen)) { \ - ip6stat.ip6s_tooshort++; \ - in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated); \ - m_freem(m); \ - return ret; \ - } \ - } \ -} while (0) - -/* * IP6_EXTHDR_GET ensures that intermediate protocol header (from "off" to * "len") is located in single mbuf, on contiguous memory region. * The pointer to the region will be returned to pointer variable "val", |