Vitezslav Samel <vitezslav(a)samel.cz> writes:
Hi!
Do you know what's the purpose and/or history of these lines in
packet.c in processpacket()?
------------
if (fromaddr->sll_protocol == ETH_P_8021Q)
fromaddr->sll_protocol =
ntohs(*((unsigned short *) (tpacket + ETH_HLEN + 2)));
------------
IMHO the "tpacket + ETH_HLEN + 2" is wrong - there is no protocol number
at this place!
it's extended header for VLAN, but it should be +4 and not
stored in fromaddr->ssl_protocol. yes, it's buggy.
--
Nikola