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