Skip to main content

Crate packet_dissector_bgp

Crate packet_dissector_bgp 

Source
Expand description

BGP-4 (Border Gateway Protocol version 4) dissector.

§References

§RFC 4271 (BGP-4) Coverage

RFC SectionDescriptionTest
4.1Message Headerparse_bgp_keepalive
4.1Marker validationparse_bgp_invalid_marker
4.1Truncated headerparse_bgp_truncated_header
4.2OPEN Messageparse_bgp_open_basic
4.2OPEN with Capabilitiesparse_bgp_open_with_capabilities
4.2Truncated OPENparse_bgp_truncated_open
4.3UPDATE Withdrawn Routesparse_bgp_update_withdraw
4.3UPDATE Path Attributes + NLRIparse_bgp_update_announce
4.3NLRI prefix CIDR formattingformat_nlri_ipv4_prefix_cidr
4.5NOTIFICATIONparse_bgp_notification
5.1.1ORIGINparse_bgp_update_origin
5.1.2AS_PATHparse_bgp_update_as_path
5.1.3NEXT_HOPparse_bgp_update_next_hop
5.1.4MULTI_EXIT_DISCparse_bgp_update_multi_exit_disc
5.1.5LOCAL_PREFparse_bgp_update_local_pref
5.1.6ATOMIC_AGGREGATEparse_bgp_update_atomic_aggregate
5.1.7AGGREGATOR (2-byte AS)parse_bgp_update_aggregator_2byte_as
4.1Multiple messages per segmentparse_bgp_multiple_messages
4.2+4.4OPEN followed by KEEPALIVEparse_bgp_open_followed_by_keepalive
4.3Unknown attribute (raw bytes)parse_bgp_update_unknown_attribute

§RFC 6793 (4-octet AS Numbers) Coverage

RFC SectionDescriptionTest
3AGGREGATOR (4-byte AS)parse_bgp_update_aggregator_4byte_as
3AS4_PATHparse_bgp_update_as4_path
3AS4_AGGREGATORparse_bgp_update_as4_aggregator

§RFC 1997 Coverage

RFC SectionDescriptionTest
3COMMUNITIESparse_bgp_update_communities

§RFC 2918 Coverage

RFC SectionDescriptionTest
3ROUTE-REFRESHparse_bgp_route_refresh

§RFC 7313 (Enhanced Route Refresh) Coverage

RFC SectionDescriptionTest
4Message Subtype (BoRR)parse_bgp_route_refresh_subtype_borr

§RFC 9072 (Extended Optional Parameters Length) Coverage

RFC SectionDescriptionTest
2Extended OPEN encoding + 2-octet param lengthparse_bgp_open_extended_optional_parameters

§RFC 4486 / RFC 8203 (Cease NOTIFICATION subcodes) Coverage

RFC SectionDescriptionTest
RFC 4486 §4Cease subcodes 1–8 + RFC 8203 §4 subcode 9parse_bgp_notification_cease_subcode_name

§RFC 4360 / RFC 9012 Coverage

RFC SectionDescriptionTest
2Extended Communities + Colorparse_bgp_update_extended_communities
2IPv4 Address Specific Route Targetparse_bgp_update_extended_communities_ipv4_route_target
2Route Origin (Two-Octet AS)parse_bgp_update_extended_communities_route_origin
2IPv4 Address Specific Route Originparse_bgp_update_extended_communities_ipv4_route_origin
2EVPN Extended Communityparse_bgp_update_extended_communities_evpn
2Unknown Extended Communityparse_bgp_update_extended_communities_unknown

§RFC 4456 (Route Reflection) Coverage

RFC SectionDescriptionTest
8ORIGINATOR_IDparse_bgp_update_originator_id
8CLUSTER_LISTparse_bgp_update_cluster_list

§RFC 4760 Coverage

RFC SectionDescriptionTest
3MP_REACH_NLRI (IPv6)parse_bgp_update_mp_reach_ipv6
3MP_REACH_NLRI (IPv6 link-local NH)parse_bgp_update_mp_reach_ipv6_link_local
4MP_UNREACH_NLRI (IPv6)parse_bgp_update_mp_unreach_ipv6
4MP_UNREACH_NLRI (IPv4)parse_bgp_update_mp_unreach_ipv4
3IPv6 NLRI prefix CIDR formattingformat_nlri_ipv6_prefix_cidr

§draft-ietf-bess-mup-safi-00 Coverage

SectionDescriptionTest
3MUP NLRI (Interwork Segment Discovery)parse_bgp_update_mup_interwork_segment_discovery
3.3Type 1 ST (3GPP 5G)parse_bgp_update_mup_type1_st

§RFC 8092 Coverage

RFC SectionDescriptionTest
2LARGE_COMMUNITYparse_bgp_update_large_community

§RFC 8669 (BGP Prefix-SID) Coverage

RFC SectionDescriptionTest
3.1Label-Index TLVparse_bgp_prefix_sid_label_index
3.2Originator SRGB TLVparse_bgp_prefix_sid_originator_srgb
3Multiple TLVsparse_bgp_prefix_sid_multiple_tlvs
3Unknown TLVparse_bgp_prefix_sid_unknown_tlv
6Truncated TLV handlingparse_bgp_prefix_sid_truncated

§RFC 9252 (SRv6 BGP Services) Coverage

RFC SectionDescriptionTest
2SRv6 L3 Service TLVparse_bgp_prefix_sid_srv6_l3_service
2SRv6 L2 Service TLVparse_bgp_prefix_sid_srv6_l2_service
3.1SRv6 SID Information Sub-TLVparse_bgp_prefix_sid_srv6_l3_service
3.2.1SRv6 SID Structure Sub-Sub-TLVparse_bgp_prefix_sid_srv6_sid_structure

Structs§

BgpDissector
BGP-4 dissector.