diff --git a/Makefile.am b/Makefile.am
index 9337ffa..850f8bf 100644
--- a/Makefile.am
+++ b/Makefile.am
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 0000000..dfd5ecb
--- /dev/null
+++ b/tools/magic.btsnoop
+
+#------------------------------------------------------------------------------
+# BTSnoop: file(1) magic for BTSnoop files
+#
+# From <marcel@holtmann.org>
+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