Lines Matching refs:eth
9 * Version: @(#)eth.c 1.0.7 05/25/93
83 struct ethhdr *eth = skb_push(skb, ETH_HLEN);
86 eth->h_proto = htons(type);
88 eth->h_proto = htons(len);
96 memcpy(eth->h_source, saddr, ETH_ALEN);
99 memcpy(eth->h_dest, daddr, ETH_ALEN);
108 eth_zero_addr(eth->h_dest);
128 const struct ethhdr *eth = (const struct ethhdr *)data;
132 if (unlikely(len < sizeof(*eth)))
137 eth->h_proto, sizeof(*eth),
139 return max_t(u32, keys.control.thoff, sizeof(*eth));
159 const struct ethhdr *eth;
164 eth = (struct ethhdr *)skb->data;
178 if (likely(eth_proto_is_802_3(eth->h_proto)))
179 return eth->h_proto;
205 const struct ethhdr *eth = eth_hdr(skb);
206 memcpy(haddr, eth->h_source, ETH_ALEN);
221 struct ethhdr *eth;
224 eth = (struct ethhdr *)
225 (((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth))));
230 eth->h_proto = type;
231 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
232 memcpy(eth->h_dest, neigh->ha, ETH_ALEN);
266 const struct ethhdr *eth = eth_hdr(skb);
268 return eth->h_proto;
384 return alloc_netdev_mqs(sizeof_priv, "eth%d", NET_NAME_ENUM,