Lines Matching refs:eth

83 	struct ethhdr *eth = skb_push(skb, ETH_HLEN);  in eth_header()  local
86 eth->h_proto = htons(type); in eth_header()
88 eth->h_proto = htons(len); in eth_header()
96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header()
99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
108 eth_zero_addr(eth->h_dest); in eth_header()
128 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local
132 if (unlikely(len < sizeof(*eth))) in eth_get_headlen()
137 eth->h_proto, sizeof(*eth), in eth_get_headlen()
139 return max_t(u32, keys.control.thoff, sizeof(*eth)); in eth_get_headlen()
159 const struct ethhdr *eth; in eth_type_trans() local
164 eth = (struct ethhdr *)skb->data; in eth_type_trans()
167 if (unlikely(!ether_addr_equal_64bits(eth->h_dest, in eth_type_trans()
169 if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { in eth_type_trans()
170 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in eth_type_trans()
188 if (likely(eth_proto_is_802_3(eth->h_proto))) in eth_type_trans()
189 return eth->h_proto; in eth_type_trans()
215 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() local
216 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse()
231 struct ethhdr *eth; in eth_header_cache() local
234 eth = (struct ethhdr *) in eth_header_cache()
235 (((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth)))); in eth_header_cache()
240 eth->h_proto = type; in eth_header_cache()
241 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in eth_header_cache()
242 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache()
276 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol() local
278 return eth->h_proto; in eth_header_parse_protocol()