Lines Matching refs:ethhdr
114 struct ethhdr *ethhdr; in vl600_rx_fixup() local
193 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup()
194 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
197 memcpy(ethhdr->h_source, in vl600_rx_fixup()
198 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup()
200 memcpy(ethhdr->h_dest, in vl600_rx_fixup()
201 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup()
204 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup()
205 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup()
212 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup()
213 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup()
255 int orig_len = skb->len - sizeof(struct ethhdr); in vl600_tx_fixup()
262 if (skb->len < sizeof(struct ethhdr)) in vl600_tx_fixup()