NewLionwang / dpkt

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

fix the BGP-4 packet header's marker #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The BGP-4 spec says that the marker must be "all ones", which means all bits 
set to one, not bytes equal to 0x01 as is currently done in Dpkt. This  bug 
prevents generating BGP-4 packets correctly without specifying the correct 
marker field manually.

Specifically, please modify class dpkt.bgp.BGP to change:
        ('marker', '16s', '\x01' * 16),
into:
        ('marker', '16s', '\xff' * 16),

Original issue reported on code.google.com by lengletr...@googlemail.com on 5 Aug 2010 at 2:44

GoogleCodeExporter commented 8 years ago
Thanks - fixed in r76

Original comment by dugsong on 6 Jan 2011 at 3:52