Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_pan.cc416 tETH_HDR eth_hdr; in btpan_tap_send()
420 char packet[TAP_MAX_PKT_WRITE_LEN + sizeof(tETH_HDR)]; in btpan_tap_send()
421 memcpy(packet, &eth_hdr, sizeof(tETH_HDR)); in btpan_tap_send()
427 memcpy(packet + sizeof(tETH_HDR), buf, len); in btpan_tap_send()
431 OSI_NO_INTR(ret = write(tap_fd, packet, len + sizeof(tETH_HDR))); in btpan_tap_send()
545 static inline bool should_forward(tETH_HDR* hdr) { in should_forward()
553 static int forward_bnep(tETH_HDR* eth_hdr, BT_HDR* hdr) { in forward_bnep()
717 if (buffer->len > sizeof(tETH_HDR) && should_forward((tETH_HDR*)packet)) { in btu_exec_tap_fd_read()
722 tETH_HDR hdr; in btu_exec_tap_fd_read()
723 memcpy(&hdr, packet, sizeof(tETH_HDR)); in btu_exec_tap_fd_read()
[all …]
/system/bt/btif/include/
Dbtif_pan_internal.h62 } tETH_HDR; typedef