2003-09-03 06:38:15 +00:00
|
|
|
/* packet-nt-oui.c
|
|
|
|
* Register an LLC dissector table for Nortel's OUI 00:00:0c
|
|
|
|
*
|
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
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
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
|
|
|
|
2013-12-14 16:09:57 +00:00
|
|
|
void proto_register_nortel_oui(void);
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2016-03-13 11:51:45 +00:00
|
|
|
llc_add_oui(OUI_NORTEL, "llc.nortel_pid", "LLC Nortel OUI PID", hf, -1);
|
2003-09-03 06:38:15 +00:00
|
|
|
}
|
2014-09-30 23:12:26 +00:00
|
|
|
|
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-09-30 23:12:26 +00:00
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|