Add HP Switch Protocol SAP value
[obnox/wireshark/wip.git] / epan / dissectors / packet-ripng.h
1 /* packet-ripng.h
2  * RIPng definition
3  * (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@ewireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __PACKET_RIPNG_H_DEFINED__
27 #define __PACKET_RIPNG_H_DEFINED__
28
29 #include "packet-ipv6.h"
30
31 /*
32  * KAME Header: /cvsroot/kame/kame/kame/kame/route6d/route6d.h,v 1.1.1.1 1999/08/08 23:31:35 itojun Exp
33  */
34
35 /*
36  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
37  * All rights reserved.
38  *
39  * Redistribution and use in source and binary forms, with or without
40  * modification, are permitted provided that the following conditions
41  * are met:
42  * 1. Redistributions of source code must retain the above copyright
43  *    notice, this list of conditions and the following disclaimer.
44  * 2. Redistributions in binary form must reproduce the above copyright
45  *    notice, this list of conditions and the following disclaimer in the
46  *    documentation and/or other materials provided with the distribution.
47  * 3. Neither the name of the project nor the names of its contributors
48  *    may be used to endorse or promote products derived from this software
49  *    without specific prior written permission.
50  *
51  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
52  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
53  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
54  * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
55  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
56  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
57  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
58  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
59  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
60  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
61  * SUCH DAMAGE.
62  */
63
64 #define RIP6_VERSION    1
65
66 #define RIP6_REQUEST    1
67 #define RIP6_RESPONSE   2
68
69 struct netinfo6 {
70         struct  e_in6_addr      rip6_dest;
71         gushort rip6_tag;
72         guchar  rip6_plen;
73         guchar  rip6_metric;
74 };
75
76 struct  rip6 {
77         guchar  rip6_cmd;
78         guchar  rip6_vers;
79         guchar  rip6_res1[2];
80         union {
81                 struct  netinfo6        ru6_nets[1];
82                 char    ru6_tracefile[1];
83         } rip6un;
84 #define rip6_nets       rip6un.ru6_nets
85 #define rip6_tracefile  rip6un.ru6_tracefile
86 };
87
88 #define HOPCNT_INFINITY6        16
89 #define NEXTHOP_METRIC          0xff
90 #define RIP6_MAXMTU             1500
91
92 #define IFMINMTU                576
93
94 #ifndef DEBUG
95 #define SUPPLY_INTERVAL6        30
96 #define RIP_LIFETIME            180
97 #define RIP_HOLDDOWN            120
98 #define RIP_TRIG_INT6_MAX       5
99 #define RIP_TRIG_INT6_MIN       1
100 #else
101 /* only for debugging; can not wait for 30sec to appear a bug */
102 #define SUPPLY_INTERVAL6        10
103 #define RIP_LIFETIME            60
104 #define RIP_HOLDDOWN            40
105 #define RIP_TRIG_INT6_MAX       5
106 #define RIP_TRIG_INT6_MIN       1
107 #endif
108
109 #define RIP6_PORT               521
110 #define RIP6_DEST               "ff02::9"
111
112 #define LOOPBACK_IF             "lo0"
113
114 #endif /* __PACKET_RIPNG_H_DEFINED__ */