Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3-0]: src/sys/netinet6 Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/4d7b7dbf8cfd
branches: netbsd-3-0
changeset: 579226:4d7b7dbf8cfd
user: riz <riz%NetBSD.org@localhost>
date: Wed May 24 02:23:08 2006 +0000
description:
Pull up following revision(s) (requested by rpaulo in ticket #1338):
sys/netinet6/ip6_input.c: revision 1.87 via patch
In ip6_savecontrol(), ignore IPv4 packets.
>From JINMEI Tatuya (KAME). Should fix PR 33269.
diffstat:
sys/netinet6/ip6_input.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 779aaf4578a9 -r 4d7b7dbf8cfd sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c Wed May 24 02:15:21 2006 +0000
+++ b/sys/netinet6/ip6_input.c Wed May 24 02:23:08 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_input.c,v 1.77 2004/12/04 16:10:25 peter Exp $ */
+/* $NetBSD: ip6_input.c,v 1.77.12.1 2006/05/24 02:23:08 riz 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.77 2004/12/04 16:10:25 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.77.12.1 2006/05/24 02:23:08 riz Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1005,6 +1005,11 @@
mp = &(*mp)->m_next;
}
#endif
+
+ /* some OSes call this logic with IPv4 packet, for SO_TIMESTAMP */
+ if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION)
+ return;
+
if (in6p->in6p_flags & IN6P_RECVDSTADDR) {
*mp = sbcreatecontrol((caddr_t) &ip6->ip6_dst,
sizeof(struct in6_addr), IPV6_RECVDSTADDR, IPPROTO_IPV6);
Home |
Main Index |
Thread Index |
Old Index