Lines Matching refs:ethhdr
209 struct ethhdr *ethhdr; in hsr_get_node() local
217 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
220 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
225 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node()
235 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
236 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
252 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
269 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
283 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
286 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame()
289 if (ethhdr->h_proto == htons(ETH_P_HSR)) in hsr_handle_sup_frame()
311 ether_addr_copy(node_real->macaddress_B, ethhdr->h_source); in hsr_handle_sup_frame()
331 if (ethhdr->h_proto == htons(ETH_P_HSR)) in hsr_handle_sup_frame()