2 * Declares for hello handling inside isis.
4 * $Id: packet-isis-hello.h,v 1.1 1999/12/15 04:34:18 guy Exp $
5 * Stuart Stanley <stuarts@mxmail.net>
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@zing.org>
9 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #ifndef _PACKET_ISIS_HELLO_H
30 #define _PACKET_ISIS_HELLO_H
33 * Declare L1/L2 hello base header.
36 guint8 isis_hello_circuit_reserved; /* circuit type & reserved */
37 #define ISIS_HELLO_CTYPE_MASK 0x03
38 #define ISIS_HELLO_CT_RESERVED_MASK 0xfc
39 guint8 isis_hello_source_id[6]; /* source id */
40 guint8 isis_hello_holding_timer[2]; /* holding timer */
41 guint8 isis_hello_pdu_length[2]; /* full length, including hdr */
42 guint8 isis_hello_priority_reserved; /* priority & reserved */
43 #define ISIS_HELLO_PRIORITY_MASK 0x7f
44 #define ISIS_HELLO_P_RESERVED_MASK 0x80
45 guint8 isis_hello_lan_id[7]; /* LAN id */
48 #define isis_hello_circuit isis_hello_circuit_reserved&ISIS_HELLO_CTYPE_MASK
49 #define isis_hello_creserved \
50 isis_hello_circuit_reserved&ISIS_HELLO_CT_RESERVED_MASK
52 #define isis_hello_priority \
53 isis_hello_priority_reserved&ISIS_HELLO_PRIORITY_MASK
54 #define isis_hello_preserved \
55 isis_hello_priority_reserved&ISIS_HELLO_P_RESERVED_MASK
57 #define ISIS_HELLO_TYPE_RESERVED 0
58 #define ISIS_HELLO_TYPE_LEVEL_1 1
59 #define ISIS_HELLO_TYPE_LEVEL_2 2
60 #define ISIS_HELLO_TYPE_LEVEL_12 3
63 * detail clv information on l1 hello packets
65 #define ISIS_CLV_L1H_AREA_ADDRESS 1
66 #define ISIS_CLV_L1H_IS_NEIGHBORS 6
67 #define ISIS_CLV_L1H_PADDING 8
68 #define ISIS_CLV_L1H_NLPID 129
69 #define ISIS_CLV_L1H_IP_INTERFACE_ADDR 132
71 * Note, the spec say 133, but everyone seems to use 10. Any clue on why
72 * this is would be appreciated!
74 #define ISIS_CLV_L1H_AUTHENTICATION_NS 10 /*non spec */
75 #define ISIS_CLV_L1H_AUTHENTICATION 133
78 * detail clv information on l2 hello packets
80 #define ISIS_CLV_L2H_AREA_ADDRESS 1
81 #define ISIS_CLV_L2H_IS_NEIGHBORS 6
82 #define ISIS_CLV_L2H_PADDING 8
83 #define ISIS_CLV_L2H_NLPID 129
84 #define ISIS_CLV_L2H_IP_INTERFACE_ADDR 132
86 * Note, the spec say 133, but everyone seems to use 10. Any clue on why
87 * this is would be appreciated!
89 #define ISIS_CLV_L2H_AUTHENTICATION_NS 10 /*non spec */
90 #define ISIS_CLV_L2H_AUTHENTICATION 133
93 * detail clv information on PTP hello packets
95 #define ISIS_CLV_PTP_AREA_ADDRESS 1
96 #define ISIS_CLV_PTP_PADDING 8
97 #define ISIS_CLV_PTP_NLPID 129
98 #define ISIS_CLV_PTP_IP_INTERFACE_ADDR 132
100 * Note, the spec say 133, but everyone seems to use 10. Any clue on why
101 * this is would be appreciated!
103 #define ISIS_CLV_PTP_AUTHENTICATION_NS 10 /*non spec */
104 #define ISIS_CLV_PTP_AUTHENTICATION 133
107 * Published API functions. NOTE, this are "local" API functions and
108 * are only valid from with isis decodes.
110 extern void isis_dissect_isis_hello(int hello_type, int header_length,
111 const u_char *pd, int offset, frame_data *fd, proto_tree *tree);
112 #endif /* _PACKET_ISIS_HELLO_H */