From e33fe5dec2079e2040ae98a9dcf0f3bdffb6a212 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 21 Dec 2012 12:15:31 -0800 Subject: [PATCH] build: Add magic file for BTSnoop file format --- Makefile.am | 2 ++ tools/magic.btsnoop | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tools/magic.btsnoop diff --git a/Makefile.am b/Makefile.am index 9337ffafa..850f8bfa3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -205,6 +205,8 @@ EXTRA_DIST += doc/alert-api.txt \ EXTRA_DIST += doc/obex-api.txt doc/obex-agent-api.txt +EXTRA_DIST += tools/magic.btsnoop + AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@ AM_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \ diff --git a/tools/magic.btsnoop b/tools/magic.btsnoop new file mode 100644 index 000000000..dfd5ecb9e --- /dev/null +++ b/tools/magic.btsnoop @@ -0,0 +1,13 @@ + +#------------------------------------------------------------------------------ +# BTSnoop: file(1) magic for BTSnoop files +# +# From +0 string btsnoop\0 BTSnoop +>8 belong x version %d, +>12 belong 1001 Unencapsulated HCI +>12 belong 1002 HCI UART (H4) +>12 belong 1003 HCI BCSP +>12 belong 1004 HCI Serial (H5) +>12 belong 2001 Bluetooth monitor +>>12 belong x type %d -- 2.11.0