MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-iana-oui.c
blob068720c377772360f24fedd7e17a05b1753170c9
1 /* packet-iana-oui.c
2 * Register an LLC dissector table for the IANA's OUI 00:00:5e
4 * $Id$
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #include "config.h"
27 #include <epan/packet.h>
28 #include "packet-llc.h"
29 #include <epan/oui.h>
30 #include <epan/iana_snap_pid.h>
32 static int hf_llc_iana_pid = -1;
34 static const value_string iana_pid_vals[] = {
35 { IANA_PID_MARS_DATA_SHORT, "MARS Data Messages (short form)" },
36 { IANA_PID_NHRP_RESERVED, "Reserved for future NHRP use" },
37 { IANA_PID_MARS_NHRP_CONTROL, "MARS/NHRP Control Messages" },
38 { IANA_PID_MARS_DATA_LONG, "MARS Data Messages (long form)" },
39 { IANA_PID_SCSP, "SCSP" },
40 { IANA_PID_VRID, "VRID" },
41 { IANA_PID_L2TP, "L2TP" },
42 { IANA_PID_VPN_ID, "VPN ID" },
43 { IANA_PID_MSDP_GRE_PROTO_TYPE, "MSDP-GRE-Protocol Type" },
44 { 0, NULL }
48 * NOTE: there's no dissector here, just registration routines to set
49 * up the dissector table for the IANA OUI.
51 void
52 proto_register_iana_oui(void)
54 static hf_register_info hf[] = {
55 { &hf_llc_iana_pid,
56 { "PID", "llc.iana_pid", FT_UINT16, BASE_HEX,
57 VALS(iana_pid_vals), 0x0, NULL, HFILL }
61 llc_add_oui(OUI_IANA, "llc.iana_pid", "LLC IANA OUI PID", hf);