Lines Matching refs:eth_hdr
398 tETH_HDR eth_hdr; in btpan_tap_send() local
399 eth_hdr.h_dest = dst; in btpan_tap_send()
400 eth_hdr.h_src = src; in btpan_tap_send()
401 eth_hdr.h_proto = htons(proto); in btpan_tap_send()
403 memcpy(packet, ð_hdr, sizeof(tETH_HDR)); in btpan_tap_send()
534 static int forward_bnep(tETH_HDR* eth_hdr, BT_HDR* hdr) { in forward_bnep() argument
535 int broadcast = eth_hdr->h_dest.address[0] & 1; in forward_bnep()
541 (broadcast || btpan_cb.conns[i].eth_addr == eth_hdr->h_dest || in forward_bnep()
542 btpan_cb.conns[i].peer == eth_hdr->h_dest)) { in forward_bnep()
543 int result = PAN_WriteBuf(handle, eth_hdr->h_dest, eth_hdr->h_src, in forward_bnep()
544 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()