Lines Matching defs:ehdr
66 struct ethhdr *ehdr;
92 ehdr = skb_push(skb, ETH_HLEN + 8);
94 ehdr = skb_push(skb, ETH_HLEN + 4);
96 ehdr = skb_push(skb, ETH_HLEN - 6);
98 ehdr = skb_push(skb, ETH_HLEN);
111 eth_zero_addr(ehdr->h_source);
112 eth_zero_addr(ehdr->h_dest);
114 ether_addr_copy(ehdr->h_source, attr->src);
116 ether_addr_copy(ehdr->h_dest, attr->dst);
119 ehdr->h_proto = htons(ETH_P_IP);
121 __be16 *ptr = (__be16 *)ehdr;
131 tag = (void *)ehdr + ETH_HLEN;
132 proto = (void *)ehdr + (2 * ETH_ALEN);
134 tag = (void *)ehdr + ETH_HLEN - 6;
135 proto = (void *)ehdr + ETH_ALEN;
160 (sizeof(*ihdr) + sizeof(*ehdr)));
178 iplen = attr->max_size - sizeof(*ehdr);
255 struct ethhdr *ehdr;
269 ehdr = (struct ethhdr *)skb_mac_header(skb);
271 if (!ether_addr_equal_unaligned(ehdr->h_dest, dst))
275 if (!ether_addr_equal_unaligned(ehdr->h_source, ehdr->h_dest))
278 if (!ether_addr_equal_unaligned(ehdr->h_source, src))
720 struct ethhdr *ehdr;
722 ehdr = (struct ethhdr *)skb_mac_header(skb);
723 if (!ether_addr_equal_unaligned(ehdr->h_source, orig_ndev->dev_addr))
725 if (ehdr->h_proto != htons(ETH_P_PAUSE))
842 struct ethhdr *ehdr;
868 ehdr = (struct ethhdr *)skb_mac_header(skb);
869 if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->dst))
1599 struct ethhdr *ehdr;
1602 ehdr = (struct ethhdr *)skb_mac_header(skb);
1603 if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->src))