/* Returns the length of an Ethernet header, including optional VLAN tag.  */
static int eth_hdr_len(const void *data)
/* Returns the length of an Ethernet header, including optional VLAN tag.  */
static int eth_hdr_len(const void *data)
{
	const struct ethhdr *e = data;
	return e->h_proto == htons(ETH_P_8021Q) ? VLAN_ETH_HLEN : ETH_HLEN;
}