clarartp / dpkt

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

synthesized dpkt.bgp.BGP.Keepalive objects cannot be encoded #40

Open GoogleCodeExporter opened 9 years ago

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