Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v retrieving revision 1.44.2.1 retrieving revision 1.45 diff -u -p -r1.44.2.1 -r1.45 --- src/sys/netinet6/ip6_input.c 2001/11/12 21:19:31 1.44.2.1 +++ src/sys/netinet6/ip6_input.c 2001/10/24 06:36:38 1.45 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.44.2.1 2001/11/12 21:19:31 thorpej Exp $ */ +/* $NetBSD: ip6_input.c,v 1.45 2001/10/24 06:36:38 itojun Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -82,7 +82,6 @@ #include #include #include -#include #include #include @@ -1321,8 +1320,6 @@ ip6_nexthdr(m, off, proto, nxtp) if (nxtp) *nxtp = ip6e.ip6e_nxt; off += (ip6e.ip6e_len + 2) << 2; - if (m->m_pkthdr.len < off) - return -1; return off; case IPPROTO_HOPOPTS: @@ -1334,8 +1331,6 @@ ip6_nexthdr(m, off, proto, nxtp) if (nxtp) *nxtp = ip6e.ip6e_nxt; off += (ip6e.ip6e_len + 1) << 3; - if (m->m_pkthdr.len < off) - return -1; return off; case IPPROTO_NONE: @@ -1395,6 +1390,9 @@ u_char inet6ctlerrmap[PRC_NCMDS] = { ENOPROTOOPT }; +#include +#include + int ip6_sysctl(name, namelen, oldp, oldlenp, newp, newlen) int *name;