sensitivity of packet range options fine tuning:
[obnox/wireshark/wip.git] / packet-nt-oui.c
1 /* packet-nt-oui.c
2  * Register an LLC dissector table for Nortel's OUI 00:00:0c
3  *
4  * $Id: packet-nt-oui.c,v 1.1 2003/09/03 06:38:15 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
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.
14  *
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.
19  *
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #include "config.h"
26
27 #include <epan/packet.h>
28 #include "packet-llc.h"
29 #include "oui.h"
30
31 static int hf_llc_nortel_pid = -1;
32
33 static const value_string nortel_pid_vals[] = {
34         { 0x01a1,       "SONMP flatnet hello" },
35         { 0x01a2,       "SONMP segment hello" },
36         { 0x01a3,       "SONMP bridge hello" },
37         { 0,            NULL }
38 };
39
40 /*
41  * NOTE: there's no dissector here, just registration routines to set
42  * up the dissector table for the Nortel OUI.
43  */
44 void
45 proto_register_nortel_oui(void)
46 {
47         static hf_register_info hf = {
48             &hf_llc_nortel_pid,
49                 { "PID",        "llc.nortel_pid",  FT_UINT16, BASE_HEX,
50                   VALS(nortel_pid_vals), 0x0, "", HFILL },
51         };
52
53         llc_add_oui(OUI_NORTEL, "llc.nortel_pid", "Nortel OUI PID", &hf);
54 }