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;
167 if (unlikely(!ether_addr_equal_64bits(eth->h_dest,
169 if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) {
170 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
188 if (likely(eth_proto_is_802_3(eth->h_proto)))
189 return eth->h_proto;
215 const struct ethhdr *eth = eth_hdr(skb);
216 memcpy(haddr, eth->h_source, ETH_ALEN);
231 struct ethhdr *eth;
234 eth = (struct ethhdr *)
235 (((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth))));
240 eth->h_proto = type;
241 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
242 memcpy(eth->h_dest, neigh->ha, ETH_ALEN);
276 const struct ethhdr *eth = eth_hdr(skb);
278 return eth->h_proto;
394 return alloc_netdev_mqs(sizeof_priv, "eth%d", NET_NAME_ENUM,