Add MIME types for more capture file formats Wireshark understands:
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Thu, 7 Feb 2013 03:51:43 +0000 (03:51 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Thu, 7 Feb 2013 03:51:43 +0000 (03:51 -0000)
 - AIX iptrace
 - Novell LANalyzer
 - HP-UX nettl

The magic matching comes from Fedora's magic file, the file extensions from
wiretap.

(Yes, I just made the application/x-* MIME types up.)

svn path=/trunk/; revision=47530

wireshark-mime-package.xml
wireshark.desktop

index c53e673c2b54ce347bdf8d1688020dfcad2f4152..3ef5099798f2a218bbe0e026b258d9950f83f809 100644 (file)
     <comment>Packet Capture (Snoop)</comment>
     <generic-icon name="application-wireshark-doc"/>
     <magic>
-      <match type="string"      offset="0" value="snoop"/>
+      <match type="string" offset="0" value="snoop"/>
     </magic>
     <glob pattern="*.snoop"/>
   </mime-type>
+
+  <mime-type type="application/x-iptrace">
+    <comment>Packet Capture (AIX iptrace)</comment>
+    <generic-icon name="application-wireshark-doc"/>
+    <magic>
+      <match type="string" offset="0" value="iptrace 1.0"/>
+      <match type="string" offset="0" value="iptrace 2.0"/>
+    </magic>
+  </mime-type>
+
+  <mime-type type="application/x-lanalyzer">
+    <comment>Packet Capture (Novell LANalyzer)</comment>
+    <generic-icon name="application-wireshark-doc"/>
+    <magic>
+      <match type="little16" offset="0" value="0x1001"/>
+      <match type="little16" offset="0" value="0x1007"/>
+    </magic>
+    <glob pattern="*.tr1"/>
+  </mime-type>
+
+  <mime-type type="application/x-nettl">
+    <comment>Packet Capture (HP-UX nettl)</comment>
+    <generic-icon name="application-wireshark-doc"/>
+    <magic>
+      <match type="string" offset="0" value="\x54\x52\x00\x64\x00"/>
+    </magic>
+    <glob pattern="*.trc0"/>
+    <glob pattern="*.trc1"/>
+  </mime-type>
 </mime-info>
index 1e8f2567aecefd92a0e088cb937db1c2d0e107b3..0cd280dc1d2b7a2c728f642a5fa875890476855a 100644 (file)
@@ -72,7 +72,7 @@ Icon=wireshark.png
 TryExec=wireshark
 Exec=wireshark %f
 Terminal=false
-MimeType=application/vnd.tcpdump.pcap;application/x-pcapng;application/x-snoop;
+MimeType=application/vnd.tcpdump.pcap;application/x-pcapng;application/x-snoop;application/x-iptrace;application/x-lanalyzer;application/x-nettl
 # Categorie entry according to version 1.0 of
 # http://www.freedesktop.org/wiki/Specifications/menu-spec
 Categories=System;Monitor;GTK;