-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bmp: correctly encode path identifier in NLRI when needed
The FSM has the right decoding options. First, we change the `marshallingOptions` field to a slice instead of a single option for consistency with the remaining of the code (`Serialize()` and `Parse*()` accepts several options). This is not really needed as we only initialize a single option or none, but I suppose this may matter in the future. Then, we pass the decoding options to the `watchUpdateEvent` struct. From my understanding, this is the only one needing it. When transmitting the local RIB, we don't need to encode paths with AddPath. And when mirroring routes, the routes are already encoded. I am however unable to correctly pass the decoding options in the post-policy case. I don't see an obvious way to access the FSM in this case.
- Loading branch information
1 parent
ed0b7f9
commit b6d3960
Showing
3 changed files
with
76 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters