Lines Matching defs:ehdr
61 struct ethhdr *ehdr;
81 ehdr = skb_push(skb, ETH_HLEN);
93 eth_zero_addr(ehdr->h_dest);
96 ether_addr_copy(ehdr->h_source, attr->src);
98 ether_addr_copy(ehdr->h_dest, attr->dst);
100 ehdr->h_proto = htons(ETH_P_IP);
113 (sizeof(*ihdr) + sizeof(*ehdr)));
131 iplen = attr->max_size - sizeof(*ehdr);
179 struct ethhdr *ehdr;
193 ehdr = (struct ethhdr *)skb_mac_header(skb);
195 if (!ether_addr_equal_unaligned(ehdr->h_dest, dst))
200 if (!ether_addr_equal_unaligned(ehdr->h_source, src))