Lines Matching defs:eth
368 struct ethhdr *eth;
378 hdr->eth = data;
379 if (hdr->eth + 1 > data_end)
382 switch (bpf_ntohs(hdr->eth->h_proto)) {
386 hdr->ipv4 = (void *)hdr->eth + sizeof(*hdr->eth);
402 hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth);
544 swap_eth_addr(hdr->eth->h_source, hdr->eth->h_dest);
567 swap_eth_addr(hdr->eth->h_source, hdr->eth->h_dest);
667 if (data + sizeof(*hdr->eth) + ip_len + TCP_MAXLEN > data_end)
674 new_tcp_header = data + sizeof(*hdr->eth) + sizeof(*hdr->ipv4);
717 new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4;
791 hdr->eth = data;
792 hdr->ipv4 = (void *)hdr->eth + sizeof(*hdr->eth);
800 hdr->eth = data;
801 hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth);