smartbgp / yabgp

:bowtie:Yet Another BGP Python Implementation
http://yabgp.readthedocs.org
Apache License 2.0
238 stars 70 forks source link

Update ipv6_unicast.py #117

Open cs948294549 opened 4 years ago

cs948294549 commented 4 years ago

if len(nlri_data[1:offset]) <=32, IPv6 address would transform to IPv4 address, so check nlri_data[1:offset] length and padding \x00 on the right

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 0.0% when pulling 1e0d2109d8c1c063a90251351e2f9fcbec5b7314 on cs948294549:patch-1 into 99ccef9b2ee66c263b694a2a46fa2f0ebf6c44e9 on smartbgp:master.