dpkt
dpkt copied to clipboard
synthesized dpkt.bgp.BGP.Update.Attribute.ASPath objects cannot be encoded
From [email protected] on August 04, 2010 22:53:19
ASPath objects can be correctly encoded when decoded from a captured packet. But it is not possible to create a ASPath 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.Update.Attribute.ASPath.hdr_fields = ()
Original issue: http://code.google.com/p/dpkt/issues/detail?id=39