1999-12-15 04:34:44 +00:00
|
|
|
/* packet-isis-hello.h
|
|
|
|
* Declares for hello handling inside isis.
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-12-15 04:34:44 +00:00
|
|
|
* Stuart Stanley <stuarts@mxmail.net>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-12-15 04:34:44 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-12-15 04:34:44 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-12-15 04:34:44 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-12-15 04:34:44 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PACKET_ISIS_HELLO_H
|
|
|
|
#define _PACKET_ISIS_HELLO_H
|
|
|
|
|
|
|
|
/*
|
2002-08-28 21:04:11 +00:00
|
|
|
* Declarations for L1/L2 hello base header.
|
1999-12-15 04:34:44 +00:00
|
|
|
*/
|
|
|
|
#define ISIS_HELLO_CTYPE_MASK 0x03
|
|
|
|
#define ISIS_HELLO_CT_RESERVED_MASK 0xfc
|
|
|
|
#define ISIS_HELLO_PRIORITY_MASK 0x7f
|
|
|
|
#define ISIS_HELLO_P_RESERVED_MASK 0x80
|
|
|
|
|
|
|
|
#define ISIS_HELLO_TYPE_RESERVED 0
|
|
|
|
#define ISIS_HELLO_TYPE_LEVEL_1 1
|
|
|
|
#define ISIS_HELLO_TYPE_LEVEL_2 2
|
|
|
|
#define ISIS_HELLO_TYPE_LEVEL_12 3
|
|
|
|
|
2002-02-09 23:44:38 +00:00
|
|
|
/*
|
|
|
|
* misc. bittest macros
|
|
|
|
*/
|
|
|
|
|
2007-08-24 22:22:34 +00:00
|
|
|
#define ISIS_RESTART_RR 0x01
|
|
|
|
#define ISIS_RESTART_RA 0x02
|
|
|
|
#define ISIS_RESTART_SA 0x04
|
|
|
|
#define ISIS_MASK_RESTART_RR(x) ((x)&ISIS_RESTART_RR)
|
|
|
|
#define ISIS_MASK_RESTART_RA(x) ((x)&ISIS_RESTART_RA)
|
|
|
|
#define ISIS_MASK_RESTART_SA(x) ((x)&ISIS_RESTART_SA)
|
2002-02-09 23:44:38 +00:00
|
|
|
|
1999-12-15 04:34:44 +00:00
|
|
|
/*
|
|
|
|
* Published API functions. NOTE, this are "local" API functions and
|
|
|
|
* are only valid from with isis decodes.
|
|
|
|
*/
|
2002-08-29 18:52:54 +00:00
|
|
|
extern void isis_dissect_isis_hello(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
2002-04-07 22:36:55 +00:00
|
|
|
int offset, int hello_type, int header_length,int id_length);
|
2001-12-20 07:33:21 +00:00
|
|
|
extern void isis_register_hello(int proto_isis);
|
|
|
|
|
1999-12-15 04:34:44 +00:00
|
|
|
#endif /* _PACKET_ISIS_HELLO_H */
|