Lines Matching refs:ethhdr
234 struct ethhdr *ethhdr; in hsr_get_node() local
242 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
245 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
250 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node()
260 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
261 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
277 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
295 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
315 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
319 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
322 if (ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_handle_sup_frame()
323 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
384 ether_addr_copy(node_real->macaddress_B, ethhdr->h_source); in hsr_handle_sup_frame()