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 rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.52.4.1 retrieving revision 1.53 diff -u -p -r1.52.4.1 -r1.53 --- src/sys/netinet6/ip6_input.c 2003/10/19 10:01:31 1.52.4.1 +++ src/sys/netinet6/ip6_input.c 2002/05/28 03:04:06 1.53 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.52.4.1 2003/10/19 10:01:31 tron Exp $ */ +/* $NetBSD: ip6_input.c,v 1.53 2002/05/28 03:04:06 itojun Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.52.4.1 2003/10/19 10:01:31 tron Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.53 2002/05/28 03:04:06 itojun Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -1312,7 +1312,7 @@ ip6_nexthdr(m, off, proto, nxtp) if (m->m_pkthdr.len < off + sizeof(fh)) return -1; m_copydata(m, off, sizeof(fh), (caddr_t)&fh); - if ((fh.ip6f_offlg & IP6F_OFF_MASK) != 0) + if ((ntohs(fh.ip6f_offlg) & IP6F_OFF_MASK) != 0) return -1; if (nxtp) *nxtp = fh.ip6f_nxt; @@ -1517,6 +1517,8 @@ ip6_sysctl(name, namelen, oldp, oldlenp, } return (error); #endif + case IPV6CTL_MAXFRAGS: + return sysctl_int(oldp, oldlenp, newp, newlen, &ip6_maxfrags); default: return EOPNOTSUPP; }