[PATCH] Dump details for Bluetooth socket operations

Dmitry V. Levin ldv at altlinux.org
Thu Dec 1 22:18:50 UTC 2011


On Sun, Nov 20, 2011 at 07:18:51PM +0100, Lubomir Rintel wrote:
> * net.c: Dump details for AF_BLUETOOTH sockets

Thanks.

> Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
> ---
>  configure.ac |    1 +
>  net.c        |   79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
>  2 files changed, 76 insertions(+), 4 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 789a997..039e206 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -269,6 +269,7 @@ AC_CHECK_HEADERS([ \
>  	linux/ptrace.h \
>  	linux/utsname.h \
>  	netinet/sctp.h \
> +	bluetooth/bluetooth.h \
>  ], [], [])
>  AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
>                   [], [], [#include <stddef.h>
> diff --git a/net.c b/net.c
> index 025ae9c..0a73473 100644
> --- a/net.c
> +++ b/net.c
> @@ -101,6 +101,14 @@
>  #include <linux/icmp.h>
>  #endif
>  
> +#if defined(HAVE_BLUETOOTH_BLUETOOTH_H)
> +#include <bluetooth/bluetooth.h>
> +#include <bluetooth/rfcomm.h>
> +#include <bluetooth/l2cap.h>
> +#include <bluetooth/sco.h>
> +#include <bluetooth/hci.h>
> +#endif
> +

I do not quite like the idea to pull so many specific headers to generic
net.c file, but these particular header files might appear to be not so
risky.  I need a bit more time to check this.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20111202/61c8c024/attachment.bin>


More information about the Strace-devel mailing list