isisd: Fix misleading wording in logThe changed messages are actually located before transmission is
attempted. Therefore, the tense is somewhat misleading, especially
since transmission may not always succeed.
isisd: initialize circuit to match area is_typeNew circuits should be initialized to match the is_type
of their area. Also add an additional check to make sure
that no IIHs are sent for levels which are not enabled.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
isisd: add a slight delay to lsp_regenerate_scheduleisisd implements a holdoff interval and will refrain from regenerating
an lsp if the difference between the current time and its last refresh
is less than the holdoff interval, but instead, it will schedule a timer
to regenerate the lsp after the holdoff interval has passed.
This implementation has one disadvantage in the case where there is a
succession of calls to lsp_regenerate_schedule. In...
isisd: do remove ipv6 routes from ZebraWe can abort isis_zebra_route_del_ipv6 if the route in question has
ISIS_ROUTE_FLAG_ZEBRA_SYNCED unset, meaning it's not in the kernel.
Aborting the function if the flag is set prevents us from removing
any routes.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
zebra: show ipv6 route detail for srcdestThese are the more difficult show commands, for getting details on
(srcdest) IPv6 routes. This is in fact the only thing that needs "most
specific" matching in a srcdest context, hence this also adds new
library functions to do that.
v2: fixed handling for src_p == NULL / prefixlen == 0
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra: show ipv6 route for srcdest routesThis makes the "easy" commands srcdest aware, just changing iterators
around and printing the extra information.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tests: add a test for the srcdest_table structureSigned-off-by: Christian Franke <chris@opensourcerouting.org>
[DL: v2: fix missing slash in tests/Makefile.am]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra: netlink: add srcdest route supportThis implements processing the RTA_SRC attribute on routes received from
kernel, passing along the source prefix to the RIB functions, and adds
the attribute on updates to the kernel.
NB: "src" was in use as variable name for the "prefsrc" attribute on
routes, which indicates the preferred source address for IPv4. These
variables have been renamed to "prefsrc".
Signed-off-by: David Lamparter...
zebra: send & use srcdest source prefix in ZAPI/RIBNow that we can represent sourcedest routes, this fixes up the RIB's
usage of prefix data and passes source information down into the kernel
calls and out on ZAPI.
Fixed by Christian Franke <chris@opensourcerouting.org>:
- zebra: cleanup srcdest routes when client disconnects
- zebra: fix support for ifindex src-dest routes
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed...