Skip to content
Commit f852c123 authored by Ibe Van de Veire's avatar Ibe Van de Veire Committed by Carles Cufí
Browse files

net: ip: igmp: Fix wrong header length



The header length of the net ip packet was calculated using only the
net_pkt_ip_hdr_len function. The correct header length should be
calculated by adding net_pkt_ip_hdr_len and net_pkt_ipv4_opts_len. This
resulted in an incorrect IGMP version type in case of IGMPv2 message
(when IGMPv3 was enabled). The IGMP message was not parsed correctly and
therefore dropped.

Signed-off-by: default avatarIbe Van de Veire <ibe.vandeveire@basalte.be>
parent 3c82cd65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment