Hi -- The macro IPV6_EXTLEN_TO_BYTES(x) in defines.h that calculates the 
length in bytes of an extension header from the len field in the 
extension header option appears to be broken.  The correct formula is 
((len * 8) + 8) per RFC 2460, but the macro is calculating ((len * 4) + 
8).   This breaks any any attempt to find the transport layer header in 
a packet with extension headers.

Here is the patch:

214c214
< #define IPV6_EXTLEN_TO_BYTES(x) ((x * 4) + 8)
---
 > #define IPV6_EXTLEN_TO_BYTES(x) ((x * 8) + 8)

I am building tcpreplay version 3.4.3.

Bob.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to