Lines Matching defs:eth
331 struct ethhdr *eth;
352 eth = rx_packet;
354 if (eth->h_proto == htons(ETH_P_IP)) {
355 iph = (void *)(eth + 1);
357 } else if (eth->h_proto == htons(ETH_P_IPV6)) {
358 ip6h = (void *)(eth + 1);
361 printf("%p: failed to detect IP version for ping pong %04x\n", xsk, eth->h_proto);
372 swap(eth->h_dest, eth->h_source, ETH_ALEN);
389 meta->request.csum_start = sizeof(*eth) + sizeof(*iph);
391 meta->request.csum_start = sizeof(*eth) + sizeof(*ip6h);