From 81f90c9bf2e782a177600945207e2e92e2ed6bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Thu, 22 Jan 2026 18:28:52 +0100 Subject: [PATCH] mrib: receive_mrt: workaround for RTL8373 queries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following warning caused by RTL8373 sending IGMP queries without including the mandatory IPv4 Router Alert option: mrib_receive_mrt: ignoring invalid IGMP-message of type 11 from on Signed-off-by: Álvaro Fernández Rojas --- src/mrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mrib.c b/src/mrib.c index bdb4493..4b84fa5 100644 --- a/src/mrib.c +++ b/src/mrib.c @@ -306,7 +306,7 @@ static void mrib_receive_mrt(struct uloop_fd *fd, __unused unsigned flags) uint32_t *opts = (uint32_t*)&iph[1]; bool alert = (void*)&opts[1] <= (void*)igmp && *opts == ipv4_rtr_alert; if (!alert && (igmp->type != IGMP_HOST_MEMBERSHIP_QUERY || - (size_t)len > sizeof(*igmp) || igmp->code > 0)) { + (size_t)len > sizeof(*igmp))) { L_WARN("%s: ignoring invalid IGMP-message of type %x from %s on %d", __FUNCTION__, igmp->type, addrbuf, ifindex); continue;