-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bmp bgp open router id and as val #18037
Bmp bgp open router id and as val #18037
Conversation
caa9c57
to
1ba3845
Compare
@@ -650,7 +651,7 @@ struct stream *bgp_open_make(struct peer *peer, uint16_t send_holdtime, as_t loc | |||
stream_putw(s, (local_as <= BGP_AS_MAX) ? (uint16_t)local_as | |||
: BGP_AS_TRANS); | |||
stream_putw(s, send_holdtime); /* Hold Time */ | |||
stream_put_in_addr(s, &peer->local_id); /* BGP Identifier */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using peer->bgp->router_id
is not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bgp_open_make()
API is also used to forge regular BGP open streams, and peer->local_id will need to be used. so I have to maintain this change.
1ba3845
to
7598721
Compare
When forging BMP open message, the BGP router-id of tx open message of the BMP LOC-RIB peer up message is always set to 0.0.0.0, whatever the configured value of 'bgp router-id'. Actually, when forging a peer up LOC-RIB message, the BGP router-id value should be taken from the main BGP instance, and not from the peer bgp identifier. Fix this by refreshing the router-id whenever a peer up loc-rib message should be sent. Signed-off-by: Philippe Guibert <[email protected]>
The transmitted AS value in te tx open message of the peer up loc-rib message is set to 0. Actually, it should reflect the AS value of the current BGP instance. Signed-off-by: Philippe Guibert <[email protected]>
7598721
to
323d8ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
|
Change the value of router-id and AS value for BGP OPEN TX message made for LOC-RIB peerup/down messages.