2003-09-03 06:38:15 +00:00
|
|
|
/* packet-nt-oui.c
|
|
|
|
* Register an LLC dissector table for Nortel's OUI 00:00:0c
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2003-09-03 06:38:15 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-09-03 06:38:15 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-09-03 06:38:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include "packet-llc.h"
|
2005-09-17 00:02:31 +00:00
|
|
|
#include <epan/oui.h>
|
2003-09-03 06:38:15 +00:00
|
|
|
|
|
|
|
static int hf_llc_nortel_pid = -1;
|
|
|
|
|
|
|
|
static const value_string nortel_pid_vals[] = {
|
2010-08-16 17:19:42 +00:00
|
|
|
{ 0x01a1, "NDP flatnet hello" },
|
|
|
|
{ 0x01a2, "NDP segment hello" },
|
|
|
|
{ 0x01a3, "NDP bridge hello" },
|
2003-09-03 06:38:15 +00:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE: there's no dissector here, just registration routines to set
|
|
|
|
* up the dissector table for the Nortel OUI.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
proto_register_nortel_oui(void)
|
|
|
|
{
|
2009-06-24 02:11:11 +00:00
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_llc_nortel_pid,
|
2003-09-03 06:38:15 +00:00
|
|
|
{ "PID", "llc.nortel_pid", FT_UINT16, BASE_HEX,
|
2009-06-24 02:11:11 +00:00
|
|
|
VALS(nortel_pid_vals), 0x0, NULL, HFILL }
|
|
|
|
}
|
2003-09-03 06:38:15 +00:00
|
|
|
};
|
|
|
|
|
2009-06-24 02:11:11 +00:00
|
|
|
llc_add_oui(OUI_NORTEL, "llc.nortel_pid", "Nortel OUI PID", hf);
|
2003-09-03 06:38:15 +00:00
|
|
|
}
|