-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ip6: ensure no nexthop is created with invalid iface id
When applying the following configuration: grout# add ip6 address fd00:abcd::1/64 iface p0 grout# add ip6 route 2025:666::/64 via fd00:abcd::cafe We end up with two nexthops created: grout# show ip6 route VRF DESTINATION NEXT_HOP 0 fd00:abcd::/64 fd00:abcd::1 0 2025:666::/64 fd00:abcd::cafe grout# show ip6 nexthop VRF IP MAC IFACE QUEUE AGE STATE 0 fd00:abcd::1 30:3e:a7:0b:ea:78 p0 0 0 reachable static local link 0 fd00:abcd::cafe ??:??:??:??:??:?? ? 0 ? gateway The fd00:abcd::cafe nexthop is created with an undefined interface whereas it should have p0. When adding a new route, if the nexthop does not exist yet, make sure to use the same iface_id than the nexthop result of a route lookup. Remove the handling of gateway routes that have undefined interface id in ip6_nexthop_unreachable_cb. This can no longer happen. Update the IPv6 forwarding test to ensure it works as expected. Signed-off-by: Robin Jarry <[email protected]>
- Loading branch information
1 parent
75286b7
commit 46b14b0
Showing
3 changed files
with
12 additions
and
8 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