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