Skip to content

packet/bgp: validate marker field in BGP header#3340

Merged
fujita merged 1 commit intoosrg:masterfrom
fujita:check-message-marker
Mar 12, 2026
Merged

packet/bgp: validate marker field in BGP header#3340
fujita merged 1 commit intoosrg:masterfrom
fujita:check-message-marker

Conversation

@fujita
Copy link
Copy Markdown
Member

@fujita fujita commented Mar 12, 2026

RFC 4271 Section 6.1 requires that the 16-byte Marker field in every BGP message header must be all 0xFF. If invalid, a NOTIFICATION with Error Code Message Header Error and Error Subcode Connection Not Synchronized must be sent.

Add the missing validation to BGPHeader.DecodeFromBytes.

RFC 4271 Section 6.1 requires that the 16-byte Marker field in every
BGP message header must be all 0xFF. If invalid, a NOTIFICATION with
Error Code Message Header Error and Error Subcode Connection Not
Synchronized must be sent.

Add the missing validation to BGPHeader.DecodeFromBytes.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
@fujita fujita merged commit f0f24a2 into osrg:master Mar 12, 2026
40 checks passed
@fujita fujita deleted the check-message-marker branch March 12, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant