Home
last modified time | relevance | path

Searched refs:eth_hdr (Results 1 – 2 of 2) sorted by relevance

/system/bt/btif/src/
Dbtif_pan.c440 tETH_HDR eth_hdr; in btpan_tap_send() local
441 memcpy(&eth_hdr.h_dest, dst, ETH_ADDR_LEN); in btpan_tap_send()
442 memcpy(&eth_hdr.h_src, src, ETH_ADDR_LEN); in btpan_tap_send()
443 eth_hdr.h_proto = htons(proto); in btpan_tap_send()
445 memcpy(packet, &eth_hdr, sizeof(tETH_HDR)); in btpan_tap_send()
541 static int forward_bnep(tETH_HDR* eth_hdr, BT_HDR *hdr) { in forward_bnep() argument
542 int broadcast = eth_hdr->h_dest[0] & 1; in forward_bnep()
549 … (broadcast || memcmp(btpan_cb.conns[i].eth_addr, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0 in forward_bnep()
550 || memcmp(btpan_cb.conns[i].peer, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0)) { in forward_bnep()
551 …int result = PAN_WriteBuf(handle, eth_hdr->h_dest, eth_hdr->h_src, ntohs(eth_hdr->h_proto), hdr, 0… in forward_bnep()
/system/bt/btif/include/
Dbtif_pan_internal.h58 typedef struct eth_hdr struct