tcpdump mailing list archives

application/vnd.tcpdump.pcap assigned as MIME type for libpcap (and thus tcpdump, wireshark, ...)


From: Glen Turner <gdt () gdt id au>
Date: Fri, 01 Apr 2011 21:47:29 +1030

Hi folks,

Following an application made after discussions on this list IANA has
allocated the MIME type

  application/vnd.tcpdump.pcap

to the pcap-format files written via libpcap (ie: from applications such
as tcpdump, wireshark, etc).

See
  http://www.iana.org/assignments/media-types/application/vnd.tcpdump.pcap

IANA's reviewer had very kind words about the quality of our
application. Thanks to all those who contributed, particularly Guy.

Developers please note that any future "pcap-ng" file format which
cannot be detected by examining the major version number of a
pcap-format file should submit a further application for another MIME
type under
  application/vnd.tcpdump....
rather than re-use the
  application/vnd.tcpdump.pcap
MIME type. In current operating systems the differing MIME type would
imply that such an incompatible "pcap-ng" format should not re-use
the .pcap extension and should not use the same magic numbers at the
start of the file.

For those with files like /etc/mime.types, you may wish to add the line:
  application/vnd.tcpdump.pcap pcap

For those with Apache web servers, the configuration fragment to support
this MIME type is approximately:

  # Packet capture by libpcap, as used by "tcpdump -w"
  <IfModule mod_mime.c>
    AddType application/vnd.tcpdump.pcap .pcap
  </IfModule>
  <IfModule mod_autoindex.c>
    AddDescription "Packet capture" .pcap
    # An icon file typically shipped with Apache2
    AddIconByType (Packets,/icons/transfer.png) application/vnd.tcpdump.pcap
  </IfModule>

Best wishes to all, Glen

-- 
 Glen Turner
 www.gdt.id.au/~gdt

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: