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