Skip to main content

Module constants

Module constants 

Source
Expand description

Wire-format constants: markers, lengths, type codes.

Modules§

as_path_segment
AS_PATH segment 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_TRANS value 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).