warjiang / dpkt

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

IPv6 doesn't handle ESP packets sanely #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Under IPv6, ESP packets are "handled" as an Extension Heaeder and dpkt raises a 
NotImplemented Exception.

Since the next-hdr field of an ESP header refers to the encrypted payload, I 
don't think there is really much that could be done here. Firing an exception 
is a bit extreme, I think it is better to just not consider this an extension 
and let the parser stop there.

Attached is a diff that removes ESP from the list of extension headers.

Original issue reported on code.google.com by nux...@gmail.com on 12 Sep 2014 at 4:26

Attachments: