Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

kernel/2875: altq does not check v6 header in v6 option header

From: <hamajima(at)nagoya.ydc.co.jp>
Date: Sun Aug 11 2002 - 22:52:25 EDT


>Number: 2875
>Category: kernel
>Synopsis: altq does not check v6 header in v6 option header
net
>Environment:
        

	System      : OpenBSD 3.1
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:
head of xcast6 packet is v6 -> hop-by-hop -> v6 -> routing. altq does not check second v6 header.
>How-To-Repeat:
always if input xcast6 packet.
>Fix:
maybe i think that i am right this patch, but there is not confidence. i hope for your check.

Index: altq_subr.c



RCS file: /cvs/src/sys/altq/altq_subr.c,v retrieving revision 1.7
diff -u -r1.7 altq_subr.c
--- altq_subr.c	25 Jul 2002 20:42:53 -0000	1.7
+++ altq_subr.c	31 Jul 2002 06:26:50 -0000
@@ -717,6 +717,17 @@
 			break;
 			}
 
+		case IPPROTO_IPV6: {
+			/* get next header and header length */
+			struct ip6_hdr *ip6;
+
+			ip6 = (struct ip6_hdr *)(mtod(m0, struct ip6_hdr *) + off);
+			proto = ip6->ip6_nxt;
+			off += sizeof(struct ip6_hdr);
+			/* goto the next header */
+			break;
+			}
+
 		case IPPROTO_FRAGMENT:
 			/* ipv6 fragmentations are not supported yet */
 		default:

>Release-Note:
Received on Thu Nov 7 15:19:25 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:36 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library