Lines Matching refs:tETH_HDR
440 tETH_HDR eth_hdr; in btpan_tap_send()
444 char packet[TAP_MAX_PKT_WRITE_LEN + sizeof(tETH_HDR)]; in btpan_tap_send()
445 memcpy(packet, ð_hdr, sizeof(tETH_HDR)); in btpan_tap_send()
451 memcpy(packet + sizeof(tETH_HDR), buf, len); in btpan_tap_send()
454 int ret = write(tap_fd, packet, len + sizeof(tETH_HDR)); in btpan_tap_send()
532 static inline bool should_forward(tETH_HDR* hdr) in should_forward()
541 static int forward_bnep(tETH_HDR* eth_hdr, BT_HDR *hdr) { in forward_bnep()
708 if (buffer->len > sizeof(tETH_HDR) && should_forward((tETH_HDR *)packet)) { in btu_exec_tap_fd_read()
711 tETH_HDR hdr; in btu_exec_tap_fd_read()
712 memcpy(&hdr, packet, sizeof(tETH_HDR)); in btu_exec_tap_fd_read()
715 buffer->len -= sizeof(tETH_HDR); in btu_exec_tap_fd_read()
716 buffer->offset += sizeof(tETH_HDR); in btu_exec_tap_fd_read()