]> granicus.if.org Git - strace/commit
net: decode Bluetooth protocol names unconditionally
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 11 Apr 2018 11:53:54 +0000 (13:53 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 6 May 2018 21:18:34 +0000 (21:18 +0000)
commit02114f254cd152e07f2b849877d6e003c463644a
tree847181280b8cba0c31c106521f21f6417158cc1c
parent616fa24122933b4041754b4098f1a007ddfb3be0
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.
net.c
xlat/bt_protocols.in