| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-llc.h
1/* packet-llc.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10#ifndef __PACKET_LLC_H__
11#define __PACKET_LLC_H__
12
13#include "ws_symbol_export.h"
14
15/*
16 * Definitions of protocol IDs for the 00-80-C2 OUI, used for
17 * bridging various networks over ATM (RFC 2684) or Frame Relay (RFC 2427).
18 */
19#define BPID_ETH_WITH_FCS 0x0001 /* 802.3/Ethernet with preserved FCS */
20#define BPID_ETH_WITHOUT_FCS 0x0007 /* 802.3/Ethernet without preserved FCS */
21
22#define BPID_802_4_WITH_FCS 0x0002 /* 802.4 with preserved FCS */
23#define BPID_802_4_WITHOUT_FCS 0x0008 /* 802.4 without preserved FCS */
24
25#define BPID_802_5_WITH_FCS 0x0003 /* 802.5 with preserved FCS */
26#define BPID_802_5_WITHOUT_FCS 0x0009 /* 802.5 without preserved FCS */
27
28#define BPID_FDDI_WITH_FCS 0x0004 /* FDDI with preserved FCS */
29#define BPID_FDDI_WITHOUT_FCS 0x000A /* FDDI without preserved FCS */
30
31#define BPID_802_6_WITH_FCS 0x0005 /* 802.6 with preserved FCS */
32#define BPID_802_6_WITHOUT_FCS 0x000B /* 802.6 without preserved FCS */
33
34#define BPID_FRAGMENTS 0x000D
35
36#define BPID_BPDU 0x000E /* 802.1(d) or 802.1(g) BPDUs */
37
38#define BPID_SR_BPDU 0x000F /* Source Routing BPDUs */
39
40
41/* LLC SAP values. */
42
43#define SAP_NULL 0x00
44#define SAP_LLC_SLMGMT 0x02
45#define SAP_SNA_PATHCTRL 0x04
46#define SAP_IP 0x06
47#define SAP_SNA1 0x08
48#define SAP_SNA2 0x0C
49#define SAP_PROWAY_NM_INIT 0x0E
50#define SAP_NETWARE1 0x10
51#define SAP_OSINL1 0x14
52#define SAP_TI 0x18
53#define SAP_OSINL2 0x20
54#define SAP_OSINL3 0x34
55#define SAP_SNA3 0x40
56#define SAP_BPDU 0x42
57#define SAP_RS511 0x4E
58#define SAP_OSINL4 0x54
59#define SAP_X25 0x7E
60#define SAP_XNS 0x80
61#define SAP_BACNET 0x82
62#define SAP_NESTAR 0x86
63#define SAP_PROWAY_ASLM 0x8E
64#define SAP_ARP 0x98
65#define SAP_SNAP 0xAA
66#define SAP_HPJD 0xB4
67#define SAP_VINES1 0xBA
68#define SAP_VINES2 0xBC
69#define SAP_SNA4 0xC8
70#define SAP_NETWARE2 0xE0
71#define SAP_NETBIOS 0xF0
72#define SAP_IBMNM 0xF4
73#define SAP_HPEXT 0xF8
74#define SAP_UB 0xFA
75#define SAP_RPL 0xFC
76#define SAP_OSINL5 0xFE
77#define SAP_GLOBAL 0xFF
78
79
80extern const value_string sap_vals[];
81
82void dissect_snap(tvbuff_t *, int, packet_info *, proto_tree *,
83 proto_tree *, int, int, int, int, int);
84
85/*
86 * Add an entry for a new OUI.
87 */
88WS_DLL_PUBLIC
89void llc_add_oui(uint32_t, const char *, const char *, hf_register_info *, const int);
90
91/*
92 * SNAP information about the PID for a particular OUI:
93 *
94 * the dissector table to use with the PID's value;
95 * the field to use for the PID.
96 */
97typedef struct {
98 dissector_table_t table;
99 hf_register_info *field_info;
100} oui_info_t;
101
102/*
103 * Return the oui_info_t for the PID for a particular OUI value, or NULL
104 * if there isn't one.
105 */
106 oui_info_t *get_snap_oui_info(uint32_t);
107
108#endif
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:907
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
dissector_table
Definition packet.c:97
field_info
Definition proto.h:816
hf_register_info
Definition proto.h:803
oui_info_t
Definition packet-ieee802a.c:35
tvbuff
Definition tvbuff-int.h:35