Open amb1s1 opened 3 years ago
libbgp was expecting a valid IPv4 address as router ID; what did you configure as router ID on the bird side?
I believe non-IPv4 addresses can be use as router ID too. You can comment out the check here [1] to get rid of the error.
[1] https://github.com/Nat-Lab/libbgp/blob/master/src/bgp-fsm.cc#L344
I configured as 0.0.0.11
In this case, you can comment out the checks mentioned above, or change the router ID to something that does not start with 0, 127, 224 to 239, or 240.
I will push an update to fix the issue later. Thanks for reporting.
Thanks, it is peering now.
It looks like you guys are using validAddr4 for multiple functions. May I suggest to split the function to something more readable. like validRouterID and validNextHop. Thanks for your time.
I'm trying to test libbgp with bird as a peer. When I run the peer-and-print.cc I get the following: