Skip to content

Commit

Permalink
Silence k_del_rg()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
troglobit committed Oct 27, 2024
1 parent ceb8423 commit 89e7989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit 89e7989

Please sign in to comment.