Home | History | Annotate | Download | only in l2_packet

Lines Matching refs:eth

82 	struct l2_ethhdr *eth;
90 size_t mlen = sizeof(*eth) + len;
91 eth = os_malloc(mlen);
92 if (eth == NULL)
95 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
96 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
97 eth->h_proto = htons(proto);
98 os_memcpy(eth + 1, buf, len);
99 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
100 os_free(eth);