Home | History | Annotate | Download | only in l2_packet

Lines Matching refs:eth

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