Skip to content

bmp: fix TERMINATION and ROUTE_MIRRORING message type constants#540

Merged
fujita merged 1 commit into
osrg:masterfrom
fujita:bmp-msg-type-constants
Jun 22, 2026
Merged

bmp: fix TERMINATION and ROUTE_MIRRORING message type constants#540
fujita merged 1 commit into
osrg:masterfrom
fujita:bmp-msg-type-constants

Conversation

@fujita

@fujita fujita commented Jun 22, 2026

Copy link
Copy Markdown
Member

RFC 7854 assigns:
Termination Message = 5
Route Mirroring Message = 6

The constants were off by one (6 and 7), which caused BMP Termination and Route Mirroring messages to be encoded with wrong type bytes, breaking interoperability with any RFC-compliant BMP receiver.

Assisted-by: Claude Sonnet 4.6 noreply@anthropic.com

RFC 7854 assigns:
  Termination Message    = 5
  Route Mirroring Message = 6

The constants were off by one (6 and 7), which caused BMP Termination
and Route Mirroring messages to be encoded with wrong type bytes,
breaking interoperability with any RFC-compliant BMP receiver.

Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
@fujita fujita merged commit e11cf71 into osrg:master Jun 22, 2026
13 checks passed
@fujita fujita deleted the bmp-msg-type-constants branch June 22, 2026 04:34
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