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

Class BGPORFEntry

scapy/contrib/bgp.py:2413–2430  ·  view source on GitHub ↗

Provides an implementation of an ORF entry. References: RFC 5291

Source from the content-addressed store, hash-verified

2411
2412
2413class BGPORFEntry(Packet):
2414 """
2415 Provides an implementation of an ORF entry.
2416 References: RFC 5291
2417 """
2418 __slots__ = ["afi", "safi"]
2419 name = "ORF entry"
2420 fields_desc = [
2421 BitEnumField("action", 0, 2, _orf_actions),
2422 BitEnumField("match", 0, 1, _orf_match),
2423 BitField("reserved", 0, 5),
2424 StrField("value", "")
2425 ]
2426
2427 def __init__(self, *args, **kwargs):
2428 self.afi = kwargs.pop("afi", 1)
2429 self.safi = kwargs.pop("safi", 1)
2430 super(BGPORFEntry, self).__init__(*args, **kwargs)
2431
2432
2433class _ORFNLRIPacketField(PacketField):

Callers

nothing calls this directly

Calls 3

BitEnumFieldClass · 0.90
BitFieldClass · 0.90
StrFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…