Lines Matching refs:ethhdr
55 const struct l2_ethhdr *ethhdr; in eth_p_rx() local
57 if (len < sizeof(*ethhdr) + sizeof(global_oui) + 1) { in eth_p_rx()
62 ethhdr = (struct l2_ethhdr *) buf; in eth_p_rx()
64 buf += sizeof(*ethhdr); in eth_p_rx()
65 len -= sizeof(*ethhdr); in eth_p_rx()
78 eth_p_oui_deliver(receiver, ethhdr->h_source, ethhdr->h_dest, in eth_p_rx()
168 struct l2_ethhdr *ethhdr; in eth_p_oui_send() local
170 packet_len = sizeof(*ethhdr) + sizeof(global_oui) + 1 + len; in eth_p_oui_send()
176 ethhdr = (struct l2_ethhdr *) packet; in eth_p_oui_send()
177 os_memcpy(ethhdr->h_source, src_addr, ETH_ALEN); in eth_p_oui_send()
178 os_memcpy(ethhdr->h_dest, dst_addr, ETH_ALEN); in eth_p_oui_send()
179 ethhdr->h_proto = host_to_be16(ETH_P_OUI); in eth_p_oui_send()
180 p += sizeof(*ethhdr); in eth_p_oui_send()