Skip to content

Commit e25491f

Browse files
committed
Revert "mrib: receive_mrt: workaround for RTL8373 queries"
This reverts commit cd20f3a. Wrong branch merged (v1 instead of v2). Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
1 parent cd20f3a commit e25491f

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/mrib.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -305,22 +305,6 @@ static void mrib_receive_mrt(struct uloop_fd *fd, __unused unsigned flags)
305305

306306
uint32_t *opts = (uint32_t*)&iph[1];
307307
bool alert = (void*)&opts[1] <= (void*)igmp && *opts == ipv4_rtr_alert;
308-
if (!alert
309-
&& igmp->type == IGMP_HOST_MEMBERSHIP_QUERY
310-
&& (size_t) len == sizeof(*igmp)
311-
&& igmp->code == 0x64
312-
&& iph->version == 0x4
313-
&& iph->ihl == 0x5
314-
&& iph->tos == 0x00
315-
&& iph->tot_len == cpu_to_be16(28)
316-
&& iph->id == cpu_to_be16(1)
317-
&& iph->frag_off == 0x00
318-
&& iph->ttl == 1) {
319-
/* Workaround RTL8373 queries without Router Alert */
320-
L_DEBUG("%s: workaround IGMP query without Router Alert from %s on %d",
321-
__FUNCTION__, addrbuf, ifindex);
322-
alert = true;
323-
}
324308
if (!alert && (igmp->type != IGMP_HOST_MEMBERSHIP_QUERY ||
325309
(size_t)len > sizeof(*igmp) || igmp->code > 0)) {
326310
L_WARN("%s: ignoring invalid IGMP-message of type %x from %s on %d",

0 commit comments

Comments
 (0)