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