You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:\\bgp_test.py", line 477, in test_bgplu_21_1_as_path
logger.debug(route.__repr__())
File "D:\dpkt\dpkt\bgp.py", line 661, in __repr__
cidr = '%s/%d' % (socket.inet_ntoa(self.prefix), self.len)
OSError: packed IP wrong length for inet_ntoa
The text was updated successfully, but these errors were encountered:
amgadhanafy
changed the title
Error getting multiple paths in BGP update
BGP: Error reading NLRI label stack
Jul 30, 2020
As of rfc3107Advertisement of Multiple Paths in BGP
Carrying Label Mapping Information
Label mapping information is carried as part of the Network Layer Reachability Information (NLRI) in the Multiprotocol Extensions attributes. The AFI indicates, as usual, the address family of the associated route. The fact that the NLRI contains a label is indicated by using SAFI value 4.
The Network Layer Reachability information is encoded as one or more triples of the form <length, label, prefix>, whose fields are described below:
The use and the meaning of these fields are as follows:
a) Length:
The Length field indicates the length in bits of the address prefix plus the label(s).
b) Label:
The Label field carries one or more labels (that corresponds to the stack of labels [MPLS-ENCAPS]). Each label is encoded as 3 octets, where the high-order 20 bits contain the label value, and the low order bit contains "Bottom of Stack" (as defined in [MPLS-ENCAPS]).
c) Prefix:
The Prefix field contains address prefixes followed by enough trailing bits to make the end of the field fall on an octet boundary. Note that the value of trailing bits is irrelevant.
The current implementation is missing this feature
While trying to open file https://packetlife.net/media/captures/bgplu.cap
frame 21
using this code
this error is thrown
The text was updated successfully, but these errors were encountered: