From 89e79899f73693026ae4c00e34d6b4effe65e7e1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 27 Oct 2024 13:51:36 +0100 Subject: [PATCH] Silence k_del_rg() This silences bogus warnings for removing entries that were never added to the MRIB. During startup, and topology changes, mrouted may fail to install routes in the MRIB due to missing reverse path. Signed-off-by: Joachim Wiberg --- src/kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kern.c b/src/kern.c index 476cfd5..27f8dd4 100644 --- a/src/kern.c +++ b/src/kern.c @@ -338,7 +338,7 @@ int k_del_rg(uint32_t origin, struct gtable *g) mc.mfcc_mcastgrp.s_addr = g->gt_mcastgrp; /* write to kernel space */ - if (setsockopt(igmp_socket, IPPROTO_IP, MRT_DEL_MFC, &mc, sizeof(mc)) < 0) { + if (setsockopt(igmp_socket, IPPROTO_IP, MRT_DEL_MFC, &mc, sizeof(mc)) < 0 && errno != ENOENT) { logit(LOG_WARNING, errno, "Failed MRT_DEL_MFC(%s %s)", inet_fmt(origin, s1, sizeof(s1)), inet_fmt(g->gt_mcastgrp, s2, sizeof(s2)));