Lines Matching refs:ETH_HLEN
69 #define TOTAL_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
73 #define MAX_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
114 ipproto_off = ETH_HLEN + next_off;
292 fill_networklayer(buf + ETH_HLEN, payload_len);
335 static char buf[ETH_HLEN + IP_MAXPACKET];
379 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
380 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN);
572 iph = (struct iphdr *)(optpkt + ETH_HLEN);
602 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN);
614 fill_networklayer(buf + ETH_HLEN, PAYLOAD_LEN);
628 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN);
645 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN);
646 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
667 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN);
674 buf[ETH_HLEN + 1] ^= 0x2; // ECN set to 10
678 buf[ETH_HLEN + 1] ^= 0x20; // ECN set to 10
689 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
745 static char buffer[IP_MAXPACKET + ETH_HLEN + 1];
746 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN);
747 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buffer + ETH_HLEN);
763 pkt_size = recv(fd, buffer, IP_MAXPACKET + ETH_HLEN + 1, 0);
779 /* Min ethernet frame payload is 46(ETH_ZLEN - ETH_HLEN) by RFC 802.3.
1087 tcp_offset = ETH_HLEN + sizeof(struct iphdr);
1090 tcp_offset = ETH_HLEN + sizeof(struct ipv6hdr);