Lines Matching refs:ETH_HLEN

72 #define TOTAL_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
76 #define MAX_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
113 ipproto_off = ETH_HLEN + next_off; in setup_sock_filter()
291 fill_networklayer(buf + ETH_HLEN, payload_len); in create_packet()
334 static char buf[ETH_HLEN + IP_MAXPACKET]; in send_data_pkts()
378 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN); in recompute_packet()
379 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in recompute_packet()
571 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option()
601 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_fragment4()
613 fill_networklayer(buf + ETH_HLEN, PAYLOAD_LEN); in send_fragment4()
627 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ttl()
644 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_tos()
645 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN); in send_changed_tos()
666 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ECN()
673 buf[ETH_HLEN + 1] ^= 0x2; // ECN set to 10 in send_changed_ECN()
677 buf[ETH_HLEN + 1] ^= 0x20; // ECN set to 10 in send_changed_ECN()
688 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN); in send_fragment6()
744 static char buffer[IP_MAXPACKET + ETH_HLEN + 1]; in check_recv_pkts()
745 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN); in check_recv_pkts()
746 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buffer + ETH_HLEN); in check_recv_pkts()
762 pkt_size = recv(fd, buffer, IP_MAXPACKET + ETH_HLEN + 1, 0); in check_recv_pkts()
1078 tcp_offset = ETH_HLEN + sizeof(struct iphdr); in main()
1081 tcp_offset = ETH_HLEN + sizeof(struct ipv6hdr); in main()