scap1784 / dpkt

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

synthesized dpkt.bgp.BGP.Update.Attribute.ASPath objects cannot be encoded #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by lengletr...@googlemail.com on 5 Aug 2010 at 2:53