2021-11-30 04:18:35 +00:00
|
|
|
/** @file
|
|
|
|
*
|
2000-01-13 00:41:11 +00:00
|
|
|
* Definitions of OSI NLPIDs (Network Layer Protocol IDs)
|
2003-01-26 19:35:31 +00:00
|
|
|
* Laurent Deniel <laurent.deniel@free.fr>
|
2000-01-13 00:41:11 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-01-13 00:41:11 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2000-01-13 00:41:11 +00:00
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __NLPID_H__
|
|
|
|
#define __NLPID_H__
|
|
|
|
|
2013-04-23 16:59:09 +00:00
|
|
|
#include <epan/value_string.h>
|
|
|
|
|
2001-12-02 00:07:46 +00:00
|
|
|
/* X.263 / ISO/IEC TR 9577 NLPID values. */
|
2000-01-13 00:41:11 +00:00
|
|
|
|
2001-03-23 21:49:23 +00:00
|
|
|
#define NLPID_NULL 0x00
|
2001-12-02 00:07:46 +00:00
|
|
|
#define NLPID_IPI_T_70 0x01 /* T.70, when an IPI */
|
|
|
|
#define NLPID_SPI_X_29 0x01 /* X.29, when an SPI */
|
2001-03-23 21:49:23 +00:00
|
|
|
#define NLPID_X_633 0x03 /* X.633 */
|
2009-01-28 13:32:13 +00:00
|
|
|
#define NLPID_DMS 0x03 /* Maintenace messages: AT&T TR41459, Nortel NIS A211-1, Telcordia SR-4994, ... */
|
2003-09-03 05:39:21 +00:00
|
|
|
#define NLPID_Q_931 0x08 /* Q.931, Q.932, X.36, ISO 11572, ISO 11582 */
|
|
|
|
#define NLPID_Q_933 0x08 /* Q.933, on Frame Relay */
|
2001-03-23 21:49:23 +00:00
|
|
|
#define NLPID_Q_2931 0x09 /* Q.2931 */
|
|
|
|
#define NLPID_Q_2119 0x0c /* Q.2119 */
|
|
|
|
#define NLPID_SNAP 0x80
|
|
|
|
#define NLPID_ISO8473_CLNP 0x81 /* X.233 */
|
|
|
|
#define NLPID_ISO9542_ESIS 0x82
|
|
|
|
#define NLPID_ISO10589_ISIS 0x83
|
2021-03-24 10:09:00 +00:00
|
|
|
#define NLPID_ISO10747_IDRP 0x85
|
2001-03-23 21:49:23 +00:00
|
|
|
#define NLPID_ISO9542X25_ESIS 0x8a
|
|
|
|
#define NLPID_ISO10030 0x8c
|
|
|
|
#define NLPID_ISO11577 0x8d /* X.273 */
|
2001-04-16 10:04:33 +00:00
|
|
|
#define NLPID_IP6 0x8e
|
2021-04-01 13:01:11 +00:00
|
|
|
#define NLPID_AVAYA_IPVPN 0x8f /* Avaya/Extreme Fabric (SPBM) IPVPN */
|
2001-03-29 06:09:50 +00:00
|
|
|
#define NLPID_COMPRESSED 0xb0 /* "Data compression protocol" */
|
2014-08-15 10:15:32 +00:00
|
|
|
#define NLPID_TRILL 0xc0
|
2003-02-24 19:49:04 +00:00
|
|
|
#define NLPID_SNDCF 0xc1 /* "SubNetwork Dependent Convergence Function */
|
2012-05-02 14:56:51 +00:00
|
|
|
#define NLPID_IEEE_8021AQ 0xc1 /* IEEE 802.1aq (draft-ietf-isis-ieee-aq-05.txt); defined in context of ISIS "supported protocols" TLV */
|
2001-03-23 21:49:23 +00:00
|
|
|
#define NLPID_IP 0xcc
|
|
|
|
#define NLPID_PPP 0xcf
|
|
|
|
|
2000-01-13 00:41:11 +00:00
|
|
|
extern const value_string nlpid_vals[];
|
|
|
|
|
NLPID's of 0x08 and 0x09 should be labeled as Q.933 and LMI,
respectively, not Q.931 and Q.2931, in Frame Relay.
When dissecting Q.933-style multiprotocol encapsulated Frame Relay
frames, use the "osinl" dissector table to check for OSI network layer
protocols, include the NLPID in the tvbuff you hand to
"dissector_try_port()" with that dissector table, and put the NLPID into
the protocol tree as an invisible item - the NLPID is considered part of
the PDU for those protocols, so you have to include it in the tvbuff,
and the dissector will put it into the protocol tree.
Also, make sure the top-level entry for the Frame Relay protocol
includes all the bytes preceding the payload, and none of the payload
bytes.
Export a routine to do Q.933-style dissection, and have the WCP
dissector call it, rather than duplicating that code in the WCP
dissector.
Don't register OSI network layer protocols with the "fr.ietf" dissector
table; it's now sufficient to register them with the "osinl" dissector
table, as the Frame Relay dissector now checks that.
Get rid of unnecessary checks for protocols being enabled (if the
dissector is always called through handles or dissector tables, the
common code for handles and dissector tables will do the checks for
you).
Get rid of some unnecessary #includes.
svn path=/trunk/; revision=3211
2001-03-30 10:51:50 +00:00
|
|
|
/*
|
|
|
|
* 0x09 is, in Frame Relay, LMI, Q.2931.
|
|
|
|
*/
|
|
|
|
#define NLPID_LMI 0x09 /* LMI */
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#endif
|