Lines Matching refs:ethhdr
167 struct ethhdr *ethhdr; in hsr_get_node() local
173 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
176 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) in hsr_get_node()
178 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) in hsr_get_node()
184 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
185 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
199 return hsr_add_node(node_db, ethhdr->h_source, seq_out); in hsr_get_node()
209 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
215 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
218 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame()
221 if (ethhdr->h_proto == htons(ETH_P_HSR)) in hsr_handle_sup_frame()
242 ether_addr_copy(node_real->macaddress_B, ethhdr->h_source); in hsr_handle_sup_frame()