summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2019-12-03 15:02:20 +0100
committerDon Slice <dslice@cumulusnetworks.com>2019-12-03 16:46:34 +0100
commitd7fc0e677e8c6804e00e770b4bd2c080c7ba028a (patch)
tree0eb49ac7da7ebe37cb45d20d0f6959ed07d577ed /zebra/interface.c
parentMerge pull request #5192 from donaldsharp/zebra_rejection (diff)
downloadfrr-d7fc0e677e8c6804e00e770b4bd2c080c7ba028a.tar.xz
frr-d7fc0e677e8c6804e00e770b4bd2c080c7ba028a.zip
zebra: send RA lifetime of 0 before ceasing to advertise RAs
Problem reported by testing agency that RFC4861 section 6.2.5 states that a router should send an RA with a lifetime of 0 before ceasing to send RAs on the interface, or when the interace is shutdown, or the router is shutdown. This fix adds that capability. Ticket: CM-27061 Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 20b05dfb3..bcb833b8d 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1977,6 +1977,8 @@ DEFUN (shutdown_if,
struct zebra_if *if_data;
if (ifp->ifindex != IFINDEX_INTERNAL) {
+ /* send RA lifetime of 0 before stopping. rfc4861/6.2.5 */
+ rtadv_stop_ra(ifp);
ret = if_unset_flags(ifp, IFF_UP);
if (ret < 0) {
vty_out(vty, "Can't shutdown interface\n");