fix endian bug in fragment header scanning.
This commit is contained in:
parent
00af50df1b
commit
40e6b63c60
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ip6_input.c,v 1.66 2003/09/06 03:36:33 itojun Exp $ */
|
||||
/* $NetBSD: ip6_input.c,v 1.67 2003/10/14 05:33:04 itojun Exp $ */
|
||||
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -62,7 +62,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.66 2003/09/06 03:36:33 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.67 2003/10/14 05:33:04 itojun Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -1351,7 +1351,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 ((ntohs(fh.ip6f_offlg) & IP6F_OFF_MASK) != 0)
|
||||
if ((fh.ip6f_offlg & IP6F_OFF_MASK) != 0)
|
||||
return -1;
|
||||
if (nxtp)
|
||||
*nxtp = fh.ip6f_nxt;
|
||||
|
|
Loading…
Reference in New Issue