MCPcopy Create free account
hub / github.com/secdev/scapy / has_extended_length

Function has_extended_length

scapy/contrib/bgp.py:180–186  ·  view source on GitHub ↗

Used in BGPPathAttr to check if the extended-length flag is set.

(flags)

Source from the content-addressed store, hash-verified

178
179
180def has_extended_length(flags):
181 """
182 Used in BGPPathAttr to check if the extended-length flag is
183 set.
184 """
185
186 return flags & _BGP_PA_EXTENDED_LENGTH == _BGP_PA_EXTENDED_LENGTH
187
188
189def detect_add_path_prefix46(s, max_bit_length):

Callers 3

getfieldMethod · 0.85
BGPPathAttrClass · 0.85
post_buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…