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 <[email protected]>
> ---
>  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

Attachment: pgpvHQu3sBS0h.pgp
Description: PGP signature

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to