clarartp / dpkt

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

synthesized dpkt.bgp.BGP.Update objects cannot be encoded #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Update objects can be correctly encoded when decoded from a captured packet. 
But it is not possible to create a Update 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.__hdr_fields__ = ()

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