Lines Matching refs:ethhdr
211 struct ethhdr *ethhdr; in hsr_get_node() local
219 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
222 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
227 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node()
237 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
238 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
254 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
271 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
285 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
288 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame()
291 if (ethhdr->h_proto == htons(ETH_P_HSR)) in hsr_handle_sup_frame()
313 ether_addr_copy(node_real->macaddress_B, ethhdr->h_source); in hsr_handle_sup_frame()
333 if (ethhdr->h_proto == htons(ETH_P_HSR)) in hsr_handle_sup_frame()