Stan,
Thank you for the comment.
I planned to add the support for the IPv6 Extension Header during the next 
stage.
Will send it as a separate patch.

-----Original Message-----
From: Smith, Stan [mailto:[email protected]] 
Sent: Thursday, November 11, 2010 1:30 AM
To: Alex Naslednikov
Cc: [email protected]
Subject: IPv6 send_mgr_filter_ip() next IP protocol problem

Hello,
 In the function send_mgr_filter_ip(), when determining the next encapsulated 
IP protocol, your code needs to detect and process IPPROTO_HOPOPTS to discover 
the real next IP protocol.

Such that if( p_ipv6_hdr->NextHeader == IPPROTO_HOPOPTS ), then you need to 
process IPV6_EXTENSION_HEADER(s) to determine the real next protocol via 
p_ext->NextHeader.
See http://en.wikipedia.org/wiki/IPv6_packet.
As the code stands now, in send_mgr_filter_ip(), the switch( prot ) fails as 
IPPROTO_HOPOPTS qualifies as an unsupported protocol.

I found processing the IPv6 extension header(s) when first setting 'prot' a 
convenient location.

stan.
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to