Expand description
Wire-format constants: markers, lengths, type codes.
Modules§
- as_
path_ segment AS_PATHsegment types (RFC 4271 §4.3).- attr_
flags - Path attribute flag bits (RFC 4271 §4.3).
- attr_
type - Path attribute type codes (RFC 4271 §5).
- capability_
code - Capability codes (IANA BGP Capability Codes registry).
- message_
type - Message type codes.
- param_
type - OPEN optional parameter type codes (RFC 5492).
Constants§
- AS_
TRANS AS_TRANSvalue for 4-byte ASN backward compatibility (RFC 6793).- BGP_
PORT - Default BGP TCP port.
- BGP_
VERSION - BGP protocol version.
- EXTENDED_
MAX_ MESSAGE_ LEN - Maximum BGP message length with Extended Messages (RFC 8654).
- HEADER_
LEN - Length of the BGP message header in bytes.
- MARKER
- The 16-byte marker field (all 0xFF) that begins every BGP message.
- MARKER_
LEN - Size of the marker field in the header.
- MAX_
MESSAGE_ LEN - Maximum valid BGP message length per RFC 4271 §4.1.
- MIN_
HOLD_ TIME - Minimum non-zero hold time in seconds (RFC 4271 §4.2).
- MIN_
MESSAGE_ LEN - Minimum valid BGP message length (header only, used by KEEPALIVE).
- MIN_
NOTIFICATION_ LEN - Minimum NOTIFICATION message length (header + code + subcode).
- MIN_
OPEN_ LEN - Minimum OPEN message length (header + version + AS + hold + ID + opt len).
- MIN_
UPDATE_ LEN - Minimum UPDATE message length (header + withdrawn len + attrs len).