Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/netinet6 Pull up revision 1.67 (requested by itojun...



details:   https://anonhg.NetBSD.org/src/rev/c5af283fb080
branches:  netbsd-1-6
changeset: 530880:c5af283fb080
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Oct 19 10:01:31 2003 +0000

description:
Pull up revision 1.67 (requested by itojun in ticket #1525):
fix endian bug in fragment header scanning.

diffstat:

 sys/netinet6/ip6_input.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 15b3ffdbe0e8 -r c5af283fb080 sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Sun Oct 19 09:59:42 2003 +0000
+++ b/sys/netinet6/ip6_input.c  Sun Oct 19 10:01:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_input.c,v 1.52 2002/05/12 15:48:39 wiz Exp $       */
+/*     $NetBSD: ip6_input.c,v 1.52.4.1 2003/10/19 10:01:31 tron Exp $  */
 /*     $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $     */
 
 /*
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.52 2002/05/12 15:48:39 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.52.4.1 2003/10/19 10:01:31 tron Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1312,7 +1312,7 @@
                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;



Home | Main Index | Thread Index | Old Index