[ofw] IPv6 send_mgr_filter_ip() next IP protocol problem

Alex Naslednikov xalex at mellanox.co.il
Sun Nov 14 01:30:35 PST 2010


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:stan.smith at intel.com] 
Sent: Thursday, November 11, 2010 1:30 AM
To: Alex Naslednikov
Cc: ofw at lists.openfabrics.org
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.



More information about the ofw mailing list