Home | History | Annotate | Download | only in l2_packet

Lines Matching refs:eth

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