shithub: riscv

Download patch

ref: 76e5cda11aa9ef4a0aa6d1107e03bfefbbf84a9a
parent: 46bbeea04060257c6257d14112c6a8d317d7f930
author: cinap_lenrek <[email protected]>
date: Tue Dec 22 21:11:29 EST 2015

file: recognize tcpdump pcap files

--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -628,6 +628,11 @@
 	0xad4e5cd1,	0xFFFFFFFF,	"venti arena", OCTET,
 	0x2bb19a52,	0xFFFFFFFF,	"paq archive", OCTET,
 	0x1a53454e,	0xFFFFFFFF,	"NES ROM", OCTET,
+	/* tcpdump pcap file */
+	0xa1b2c3d4,	0xFFFFFFFF,	"pcap file",	"application/vnd.tcpdump.pcap",
+	0xd4c3b2a1,	0xFFFFFFFF,	"pcap file",	"application/vnd.tcpdump.pcap",
+	0xa1b23c4d,	0xFFFFFFFF,	"pcap file",	"application/vnd.tcpdump.pcap",
+	0x4d3cb2a1,	0xFFFFFFFF,	"pcap file",	"application/vnd.tcpdump.pcap",
 };
 
 int