Lines Matching defs:ethhdr
100 struct ethhdr *ethhdr;
171 * (sizeof(*packet) == sizeof(*ethhdr)), additionally
175 ethhdr = (struct ethhdr *) skb->data;
176 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP &&
179 memcpy(ethhdr->h_source,
180 &buf->data[sizeof(*ethhdr) + 0x8],
182 memcpy(ethhdr->h_dest,
183 &buf->data[sizeof(*ethhdr) + 0x12],
186 eth_zero_addr(ethhdr->h_source);
187 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN);
194 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60)
195 ethhdr->h_proto = htons(ETH_P_IPV6);
237 int orig_len = skb->len - sizeof(struct ethhdr);
244 if (skb->len < sizeof(struct ethhdr))
276 * (sizeof(*packet) == sizeof(struct ethhdr)), additionally the