From d7410330297953fea0b3473cbba5d732b0ea018a Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 13 May 2011 12:05:56 +0000 Subject: [PATCH] Add mime types for tcpdump, from Guy Harris --- magic/Magdir/sniffer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/magic/Magdir/sniffer b/magic/Magdir/sniffer index 7982e901..34150472 100644 --- a/magic/Magdir/sniffer +++ b/magic/Magdir/sniffer @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: sniffer,v 1.14 2009/09/19 16:28:12 christos Exp $ # sniffer: file(1) magic for packet capture files # # From: guy@alum.mit.edu (Guy Harris) @@ -74,6 +74,7 @@ # that use "libpcap", or that use the same capture file format.) # 0 ubelong 0xa1b2c3d4 tcpdump capture file (big-endian) +!:mime application/vnd.tcpdump.pcap >4 beshort x - version %d >6 beshort x \b.%d >20 belong 0 (No link-layer encapsulation @@ -138,6 +139,7 @@ >20 belong 163 (802.11 with AVS header >16 belong x \b, capture length %d) 0 ulelong 0xa1b2c3d4 tcpdump capture file (little-endian) +!:mime application/vnd.tcpdump.pcap >4 leshort x - version %d >6 leshort x \b.%d >20 lelong 0 (No link-layer encapsulation -- 2.50.0