Lines Matching full:eth
59 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len);
60 if (eth == NULL)
62 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
63 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
64 eth->h_proto = htons(proto);
65 os_memcpy(eth + 1, buf, len);
66 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
67 os_free(eth);