liuweireign / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Support for IPv6 extension headers? #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From examining the SVN checkout, there appears to be no support for IPv6 
extension headers within dpkt.

The reason I ask is that it isn't currently possibly to guarantee the 
ability to detect the payload protocol of an IPv6 packet. 
In the instance that there are no extension headers, then the 'nxt' header 
attribute is set to the payload protocol. However, if there are any 
extension headers there is no way to follow the header chain to find the 
payload protocol (or if desired, decode the extension headers).

Is there any code floating around to provide this support, or is it the 
case that it simply hasn't been implemented in dpkt?

Thanks

Original issue reported on code.google.com by o.a.stephens on 2 Mar 2010 at 6:29

GoogleCodeExporter commented 9 years ago
I've now implemented handling for all extension headers apart from ESP due to 
its 
complexities.
Please let me know if there are any issues with the changes I've made. 
Hopefully this 
will be of use to somebody! :)

Cheers,

Owen

Original comment by o.a.stephens on 5 Mar 2010 at 5:41

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It appears that I didn't test my changes fully :(. There was an issue with the 
loading 
order and dependencies of the classes that was throwing an exception.
I've now sorted it, sorry about that.

Owen

Original comment by o.a.stephens on 5 Mar 2010 at 11:26

Attachments:

GoogleCodeExporter commented 9 years ago
Committed in revision 58. Thanks Owen!

Original comment by dugsong on 26 Mar 2010 at 2:30