Lines Matching full: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 = eth_skb_pull_mac(skb);
176 if (likely(eth_proto_is_802_3(eth->h_proto)))
177 return eth->h_proto;
203 const struct ethhdr *eth = eth_hdr(skb);
204 memcpy(haddr, eth->h_source, ETH_ALEN);
219 struct ethhdr *eth;
222 eth = (struct ethhdr *)
223 (((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth))));
228 eth->h_proto = type;
229 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
230 memcpy(eth->h_dest, neigh->ha, ETH_ALEN);
264 const struct ethhdr *eth = eth_hdr(skb);
266 return eth->h_proto;
382 return alloc_netdev_mqs(sizeof_priv, "eth%d", NET_NAME_ENUM,