Home | History | Annotate | Download | only in l2_packet

Lines Matching refs:eth

102 	struct l2_ethhdr *eth;
122 size_t mlen = sizeof(*eth) + len;
123 eth = os_malloc(mlen);
124 if (eth == NULL)
127 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
128 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
129 eth->h_proto = htons(proto);
130 os_memcpy(eth + 1, buf, len);
131 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
133 os_free(eth);