Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-isis-clv.h
1/* packet-isis-clv.h
2 * Declares for common clv decoding functions.
3 *
4 * Stuart Stanley <[email protected]>
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <[email protected]>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef _PACKET_ISIS_CLV_H
14#define _PACKET_ISIS_CLV_H
15
16/*
17 * A CLV is a tuple of a type, length and a value and is normally used for
18 * encoding information in all sorts of places.
19 * IS-IS uses a uniform CLV code space that is shared across
20 * all PDU Types.
21 *
22 * list taken from rfc3359 plus some memory from veterans ;-)
23 *
24 * http://www.iana.org/assignments/isis-tlv-codepoints/isis-tlv-codepoints.xhtml#tlv-codepoints
25 */
26
27#define ISIS_CLV_AREA_ADDRESS 1 /* iso10589 */
28#define ISIS_CLV_IS_REACH 2 /* iso10589 */
29#define ISIS_CLV_ES_NEIGHBORS 3 /* iso10589 */
30#define ISIS_CLV_PARTITION_DIS 4 /* iso10589 */
31#define ISIS_CLV_PREFIX_NEIGHBORS 5 /* iso10589 */
32#define ISIS_CLV_IS_NEIGHBORS 6 /* iso10589 */
33#define ISIS_CLV_INSTANCE_IDENTIFIER 7 /* rfc6822 */
34#define ISIS_CLV_PADDING 8 /* iso10589 */
35#define ISIS_CLV_LSP_ENTRIES 9 /* iso10589 */
36#define ISIS_CLV_AUTHENTICATION 10 /* iso10589, rfc3567 */
37#define ISIS_CLV_CHECKSUM 12 /* rfc3358 */
38#define ISIS_CLV_PURGE_ORIG_ID 13 /* rfc6232 */
39#define ISIS_CLV_LSP_BUFFERSIZE 14 /* iso10589 rev2 */
40#define ISIS_CLV_REVERSE_METRIC 16 /* rfc8500 */
41#define ISIS_CLV_EXTD_IS_REACH 22 /* draft-ietf-isis-traffic-05 */
42#define ISIS_CLV_IS_ALIAS_ID 24 /* draft-ietf-isis-ext-lsp-frags-02 */
43#define ISIS_CLV_SRV6_LOCATOR 27 /* rfc9352 */
44#define ISIS_CLV_INT_IP_REACH 128 /* rfc1195, rfc2966 */
45#define ISIS_CLV_PROTOCOLS_SUPPORTED 129 /* rfc1195 */
46#define ISIS_CLV_EXT_IP_REACH 130 /* rfc1195, rfc2966 */
47#define ISIS_CLV_IDRP_INFO 131 /* rfc1195 */
48#define ISIS_CLV_IP_ADDR 132 /* rfc1195 */
49#define ISIS_CLV_IP_AUTHENTICATION 133 /* rfc1195, deprecated in rfc3787 */
50#define ISIS_CLV_TE_ROUTER_ID 134 /* draft-ietf-isis-traffic-05 */
51#define ISIS_CLV_EXTD_IP_REACH 135 /* draft-ietf-isis-traffic-05 */
52#define ISIS_CLV_HOSTNAME 137 /* rfc2763 */
53#define ISIS_CLV_SHARED_RISK_GROUP 138 /* rfc5307 */
54#define ISIS_CLV_IPV6_SRLG_TLV 139 /* rfc6119 */
55#define ISIS_CLV_IPV6_TE_ROUTER_ID 140 /* rfc6119 */
56#define ISIS_GRP_ADDR 142 /* rfc7176 */
57#define ISIS_CLV_MT_PORT_CAP 143 /* rfc6165, rfc7176 */
58#define ISIS_CLV_MT_CAP 144 /* rfc6329, rfc7176 */
59#define ISIS_CLV_TRILL_NEIGHBOR 145 /* rfc7176 */
60#define ISIS_CLV_MAC_RI 147 /* rfc6165: MAC Reachability */
61#define ISIS_CLV_BFD_ENABLED 148 /* rfc6213 */
62#define ISIS_CLV_SID_LABEL_BINDING 149 /* draft-previdi-isis-segment-routing-extensions-05 */
63#define ISIS_CLV_AVAYA_IPVPN 184 /* Avaya/Extremenetworks proprietary: Reverse engineered */
64#define ISIS_CLV_AVAYA_IPVPN_MC 185 /* Avaya/Extremenetworks proprietary: Reverse engineered */
65#define ISIS_CLV_AVAYA_IP_GRT_MC 186 /* Avaya/Extremenetworks proprietary: Reverse engineered */
66#define ISIS_CLV_RESTART 211 /* draft-ietf-isis-restart-01 */
67#define ISIS_CLV_MT_IS_REACH 222 /* draft-ietf-isis-wg-multi-topology-05 */
68#define ISIS_CLV_MT_SUPPORTED 229 /* draft-ietf-isis-wg-multi-topology-05 */
69#define ISIS_CLV_IP6_ADDR 232 /* draft-ietf-isis-ipv6-02 */
70#define ISIS_CLV_IPV6_GBL_INT_ADDR 233 /* rfc6119 */
71#define ISIS_CLV_MT_IP_REACH 235 /* draft-ietf-isis-wg-multi-topology-05 */
72#define ISIS_CLV_IP6_REACH 236 /* draft-ietf-isis-ipv6-02 */
73#define ISIS_CLV_MT_IP6_REACH 237 /* draft-ietf-isis-wg-multi-topology-05 */
74#define ISIS_CLV_APPSPEC_SRLG 238 /* rfc9479 */
75#define ISIS_CLV_PTP_ADJ_STATE 240 /* rfc3373 */
76#define ISIS_CLV_IIH_SEQNR 241 /* draft-shen-isis-iih-sequence-00 */
77#define ISIS_CLV_RT_CAPABLE 242 /* rfc4971, rfc7176 */
78#define ISIS_CLV_VENDOR_PRIVATE 250 /* draft-ietf-isis-proprietary-tlv-00 */
79
80/*
81 * Our sub-packet dismantle structure for CLV's
82 */
83typedef struct {
84 int optcode; /* code for option */
85 const char *tree_text; /* text for fold out */
86 int *tree_id; /* id for add_item */
87 void (*dissect)(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree,
88 int offset, isis_data_t *isis, int length);
90
91/*
92 * Published API functions. NOTE, this are "local" API functions and
93 * are only valid from with isis decodes.
94 */
95extern void isis_dissect_clvs(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset,
96 const isis_clv_handle_t *opts, expert_field *expert_short_len, isis_data_t *isis,
97 int unknown_tree_id, int tree_type, int tree_length, expert_field *ei_unknown);
98
99extern void isis_dissect_nlpid_clv(tvbuff_t *tvb, proto_tree *tree, int ett_nlpid,
100 int hf_nlpid, int offset, int length);
101extern void isis_dissect_te_router_id_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb, expert_field* expert,
102 int offset, int length, int tree_id);
103extern void isis_dissect_ipv6_int_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb, expert_field* expert,
104 int offset, int length, int tree_id);
105extern void isis_dissect_ip_int_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb, expert_field* expert,
106 int offset, int length, int tree_id);
107extern void isis_dissect_mt_clv(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree,
108 int offset, int length, int tree_id, expert_field* mtid_expert);
109extern void isis_dissect_hostname_clv(tvbuff_t *tvb, proto_tree *tree,
110 int offset, int length, int tree_id);
111extern void isis_dissect_authentication_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb,
112 int hf_auth_bytes, int hf_key_id, expert_field* auth_expert, int offset, int length);
113extern void isis_dissect_area_address_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb,
114 expert_field* expert, int hf_area, int offset, int length);
115extern void isis_dissect_instance_identifier_clv(proto_tree *tree, packet_info* pinfo, tvbuff_t *tvb,
116 expert_field* expert, int hf_iid, int hf_supported_itid, int offset, int length);
117
118extern void isis_dissect_metric(tvbuff_t *tvb, proto_tree *tree, int offset,
119 uint8_t value, char *pstr, int force_supported);
120
121#endif /* _PACKET_ISIS_CLV_H */
122
123/*
124 * Editor modelines - https://www.wireshark.org/tools/modelines.html
125 *
126 * Local variables:
127 * c-basic-offset: 4
128 * tab-width: 8
129 * indent-tabs-mode: nil
130 * End:
131 *
132 * vi: set shiftwidth=4 tabstop=8 expandtab:
133 * :indentSize=4:tabSize=8:noTabs=true:
134 */
Definition packet_info.h:43
Definition proto.h:903
Definition expert.h:39
Definition packet-isis-clv.h:83
Definition packet-isis.h:40
Definition tvbuff-int.h:35