Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please calculate the length of a BGP-4 path segment in ASPathSegment #41

Open
GoogleCodeExporter opened this issue May 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Please make dpkt.bgp.BGP.Update.Attribute.ASPath.ASPathSegment objects set the 
'len' field automatically to the length of the 'path' list, when encoding. 
Currently, the 'len' field has to be set manually by the caller, which is 
error-prone, e.g.:

dpkt.bgp.BGP.Update.Attribute.ASPath.ASPathSegment(
  type=dpkt.bgp.AS_SEQUENCE,
  len=1,  # could be automatically set to len(path)
  path=[64512])

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant