/src/wireshark/epan/dissectors/packet-iana-oui.c
Line | Count | Source |
1 | | /* packet-iana-oui.c |
2 | | * Register an LLC dissector table for the IANA's OUI 00:00:5e |
3 | | * |
4 | | * Wireshark - Network traffic analyzer |
5 | | * By Gerald Combs <gerald@wireshark.org> |
6 | | * Copyright 1998 Gerald Combs |
7 | | * |
8 | | * SPDX-License-Identifier: GPL-2.0-or-later |
9 | | */ |
10 | | |
11 | | #include "config.h" |
12 | | |
13 | | #include <epan/packet.h> |
14 | | #include "packet-llc.h" |
15 | | #include "packet-iana-oui.h" |
16 | | #include <epan/oui.h> |
17 | | |
18 | | void proto_register_iana_oui(void); |
19 | | |
20 | | static int hf_llc_iana_pid; |
21 | | |
22 | | static const value_string iana_pid_vals[] = { |
23 | | { IANA_PID_MARS_DATA_SHORT, "MARS Data Messages (short form)" }, |
24 | | { IANA_PID_NHRP_RESERVED, "Reserved for future NHRP use" }, |
25 | | { IANA_PID_MARS_NHRP_CONTROL, "MARS/NHRP Control Messages" }, |
26 | | { IANA_PID_MARS_DATA_LONG, "MARS Data Messages (long form)" }, |
27 | | { IANA_PID_SCSP, "SCSP" }, |
28 | | { IANA_PID_VRID, "VRID" }, |
29 | | { IANA_PID_L2TP, "L2TP" }, |
30 | | { IANA_PID_VPN_ID, "VPN ID" }, |
31 | | { IANA_PID_MSDP_GRE_PROTO_TYPE, "MSDP-GRE-Protocol Type" }, |
32 | | { 0, NULL } |
33 | | }; |
34 | | |
35 | | /* |
36 | | * NOTE: there's no dissector here, just registration routines to set |
37 | | * up the dissector table for the IANA OUI. |
38 | | */ |
39 | | void |
40 | | proto_register_iana_oui(void) |
41 | 15 | { |
42 | 15 | static hf_register_info hf[] = { |
43 | 15 | { &hf_llc_iana_pid, |
44 | 15 | { "PID", "llc.iana_pid", FT_UINT16, BASE_HEX, |
45 | 15 | VALS(iana_pid_vals), 0x0, NULL, HFILL } |
46 | 15 | } |
47 | 15 | }; |
48 | | |
49 | 15 | llc_add_oui(OUI_IANA, "llc.iana_pid", "LLC IANA OUI PID", hf, -1); |
50 | 15 | } |
51 | | |
52 | | /* |
53 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
54 | | * |
55 | | * Local variables: |
56 | | * c-basic-offset: 8 |
57 | | * tab-width: 8 |
58 | | * indent-tabs-mode: t |
59 | | * End: |
60 | | * |
61 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
62 | | * :indentSize=8:tabSize=8:noTabs=false: |
63 | | */ |