]> The Tcpdump Group git mirrors - libpcap/commit
Cope with Bluetooth API breakage in some Linux 3.x(?) kernel.
authorGuy Harris <[email protected]>
Mon, 25 Mar 2013 12:18:35 +0000 (05:18 -0700)
committerGuy Harris <[email protected]>
Mon, 25 Mar 2013 12:18:35 +0000 (05:18 -0700)
commitb6aa2bd0b3975e4349bb56d5c11eca329385510d
tree0300f67f60882fe5cb1664ac4c09124ac777f853
parent574199b4002d175efedeb662a24adc1fdec27cd7
Cope with Bluetooth API breakage in some Linux 3.x(?) kernel.

In the 2.6.32.4 kernel, struct sockaddr_hci has no hci_channel member.

In the 3.0.4 kernel, struct sockaddr_hci has an hci_channel member, and
it has to get set in order for binds of AF_BLUETOOTH/BTPROTO_HCI sockets
to work.

Cope with this API breakage by checking whether struct sockaddr_hci has
an hci_channel member and, if it does, set it to HCI_CHANNEL_RAW.
config.h.in
configure
configure.in
pcap-bt-linux.c