Coverage Report

Created: 2025-12-27 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-nt-oui.c
Line
Count
Source
1
/* packet-nt-oui.c
2
 * Register an LLC dissector table for Nortel's OUI 00:00:0c
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 <epan/oui.h>
16
17
void proto_register_nortel_oui(void);
18
19
static int hf_llc_nortel_pid;
20
21
static const value_string nortel_pid_vals[] = {
22
  { 0x01a1, "NDP flatnet hello" },
23
  { 0x01a2, "NDP segment hello" },
24
  { 0x01a3, "NDP bridge hello" },
25
  { 0,    NULL }
26
};
27
28
/*
29
 * NOTE: there's no dissector here, just registration routines to set
30
 * up the dissector table for the Nortel OUI.
31
 */
32
void
33
proto_register_nortel_oui(void)
34
14
{
35
14
  static hf_register_info hf[] = {
36
14
    { &hf_llc_nortel_pid,
37
14
    { "PID",  "llc.nortel_pid",  FT_UINT16, BASE_HEX,
38
14
      VALS(nortel_pid_vals), 0x0, NULL, HFILL }
39
14
    }
40
14
  };
41
42
14
  llc_add_oui(OUI_NORTEL, "llc.nortel_pid", "LLC Nortel OUI PID", hf, -1);
43
14
}
44
45
/*
46
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
47
 *
48
 * Local variables:
49
 * c-basic-offset: 8
50
 * tab-width: 8
51
 * indent-tabs-mode: t
52
 * End:
53
 *
54
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
55
 * :indentSize=8:tabSize=8:noTabs=false:
56
 */