File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments