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

Class BGPNotification

scapy/contrib/bgp.py:2353–2370  ·  view source on GitHub ↗

NOTIFICATION messages end a BGP session. References: RFC 4271

Source from the content-addressed store, hash-verified

2351
2352
2353class BGPNotification(BGP):
2354 """
2355 NOTIFICATION messages end a BGP session.
2356 References: RFC 4271
2357 """
2358
2359 name = "NOTIFICATION"
2360 fields_desc = [
2361 ByteEnumField("error_code", 0, _error_codes),
2362 MultiEnumField(
2363 "error_subcode",
2364 0,
2365 _error_subcodes,
2366 depends_on=lambda p: p.error_code,
2367 fmt="B"
2368 ),
2369 StrField(name="data", default=None)
2370 ]
2371
2372
2373#

Callers

nothing calls this directly

Calls 3

ByteEnumFieldClass · 0.90
MultiEnumFieldClass · 0.90
StrFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…