strace/xlat/bt_protocols.in
Eugene Syromyatnikov 02114f254c net: decode Bluetooth protocol names unconditionally
As we have all BTPROTO_* constant definitions now, there is no need
to rely on bluetooth.h header anymore.

* net.c (AF_BLUETOOTH): Provide a fallback definition.
[HAVE_BLUETOOTH_BLUETOOTH_H]: Do not include <bluetooth/bluetooth.h>.
[!HAVE_BLUETOOTH_BLUETOOTH_H]: Include "xlat/bt_protocols.h".
[!HAVE_BLUETOOTH_BLUETOOTH_H] (decode_sockbuf): Decode AF_BLUETOOTH.
(decode_sockbuf) <case AF_BLUETOOTH>: Use printxval_index.
* xlat/bt_protocols.in: Add "#value_indexed" directive.
2018-05-06 21:18:34 +00:00

10 lines
137 B
Plaintext

#value_indexed
BTPROTO_L2CAP 0
BTPROTO_HCI 1
BTPROTO_SCO 2
BTPROTO_RFCOMM 3
BTPROTO_BNEP 4
BTPROTO_CMTP 5
BTPROTO_HIDP 6
BTPROTO_AVDTP 7