We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
yabgp/yabgp/message/attribute/nlri/ipv6_unicast.py
Line 63 in f073633
length of prefix is variable, nlri_hex += binascii.unhexlify(hex(prefix.ip)[2:math.ceil(prefix.prefixlen / 8)*2+2]) eg. 2001:db8::/40
1 2 3 4 5 6 40 20 01 0d b8 0 1 byte for length, math.ceil(40/8) = 5byte for prefix
The text was updated successfully, but these errors were encountered:
zlpqingmei
No branches or pull requests
yabgp/yabgp/message/attribute/nlri/ipv6_unicast.py
Line 63 in f073633
length of prefix is variable,
nlri_hex += binascii.unhexlify(hex(prefix.ip)[2:math.ceil(prefix.prefixlen / 8)*2+2])
eg.
2001:db8::/40
1 2 3 4 5 6
40 20 01 0d b8 0
1 byte for length, math.ceil(40/8) = 5byte for prefix
The text was updated successfully, but these errors were encountered: