dpkt
dpkt copied to clipboard
synthesized dpkt.bgp.BGP.Keepalive objects cannot be encoded
From [email protected] on August 04, 2010 22:53:33
Keepalive objects can be correctly encoded when decoded from a captured packet. But it is not possible to create a Keepalive object in code and encode it without errors.
Until this bug is fixed, a workaround is to add a hdr_fields attribute to the class, after importing it: dpkt.bgp.BGP.Keepalive.hdr_fields = ()
Original issue: http://code.google.com/p/dpkt/issues/detail?id=40