util-ioctcl: increase header size

Headers can contain VLAN or Qing so we need to increase the value
returned by GetIfaceMaxHWHeaderLength.
pull/2129/head
Eric Leblond 10 years ago committed by Victor Julien
parent ed561c73a5
commit 4defc5acc2

@ -61,13 +61,16 @@ int GetIfaceMaxHWHeaderLength(const char *pcap_dev)
|| ||
(!strcmp("tap", pcap_dev)) (!strcmp("tap", pcap_dev))
|| ||
(!strcmp("lo", pcap_dev))) (!strcmp("lo", pcap_dev))) {
return ETHERNET_HEADER_LEN; /* Add possible VLAN tag or Qing headers */
return 8 + ETHERNET_HEADER_LEN;
}
if (!strcmp("ppp", pcap_dev)) if (!strcmp("ppp", pcap_dev))
return SLL_HEADER_LEN; return SLL_HEADER_LEN;
/* SLL_HEADER_LEN is the biggest one */ /* SLL_HEADER_LEN is the biggest one and
return SLL_HEADER_LEN; add possible VLAN tag and Qing headers */
return 8 + SLL_HEADER_LEN;
} }
/** /**

Loading…
Cancel
Save