summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-media-type.c
blob: 8261309a86c593e70abb9fce4b878254a255d084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* packet-media-type.c
 * Manage the media_type dissector table
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "config.h"

#include <epan/packet.h>

void
proto_register_media_type(void)
{
	/*
	 * Dissectors can register themselves in this table.
	 * It's just "media_type", not "http.content_type", because
	 * it's an Internet media type, used by other protocols as well.
	 *
	 * RFC 6838, 4.2 Naming Requirements:
	 * "Both top-level type and subtype names are case-insensitive."
	 */
	 register_dissector_table("media_type", "Internet media type",
	     -1 /* no protocol */, FT_STRING, STRING_CASE_INSENSITIVE);
}