Use "progdlg_t *" rather than "void *" as the handle for a progress
[obnox/wireshark/wip.git] / packet-ripng.h
1 /* packet-ripng.h
2  * RIPng definition
3  * (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
4  *
5  * $Id: packet-ripng.h,v 1.3 2000/04/08 07:07:35 guy Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * 
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.
16  * 
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.
21  * 
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.
25  */
26
27 #ifndef __PACKET_RIPNG_H_DEFINED__
28 #define __PACKET_RIPNG_H_DEFINED__
29
30 #ifndef __GLOBALS_H__
31 #include "globals.h"
32 #endif
33
34 #ifndef __PACKET_IPV6_H_DEFINED__
35 #include "packet-ipv6.h"
36 #endif
37
38 /*
39  * KAME Header: /cvsroot/kame/kame/kame/kame/route6d/route6d.h,v 1.1.1.1 1999/08/08 23:31:35 itojun Exp
40  */
41
42 /*
43  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
44  * All rights reserved.
45  * 
46  * Redistribution and use in source and binary forms, with or without
47  * modification, are permitted provided that the following conditions
48  * are met:
49  * 1. Redistributions of source code must retain the above copyright
50  *    notice, this list of conditions and the following disclaimer.
51  * 2. Redistributions in binary form must reproduce the above copyright
52  *    notice, this list of conditions and the following disclaimer in the
53  *    documentation and/or other materials provided with the distribution.
54  * 3. Neither the name of the project nor the names of its contributors
55  *    may be used to endorse or promote products derived from this software
56  *    without specific prior written permission.
57  * 
58  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
59  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
60  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
61  * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
62  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
63  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
64  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68  * SUCH DAMAGE.
69  */
70
71 #define RIP6_VERSION    1
72
73 #define RIP6_REQUEST    1
74 #define RIP6_RESPONSE   2
75
76 struct netinfo6 {
77         struct  e_in6_addr      rip6_dest;
78         u_short rip6_tag;
79         u_char  rip6_plen;
80         u_char  rip6_metric;
81 };
82
83 struct  rip6 {
84         u_char  rip6_cmd;
85         u_char  rip6_vers;
86         u_char  rip6_res1[2];
87         union {
88                 struct  netinfo6        ru6_nets[1];
89                 char    ru6_tracefile[1];
90         } rip6un;
91 #define rip6_nets       rip6un.ru6_nets
92 #define rip6_tracefile  rip6un.ru6_tracefile
93 };
94
95 #define HOPCNT_INFINITY6        16
96 #define NEXTHOP_METRIC          0xff
97 #define RIP6_MAXMTU             1500
98
99 #define IFMINMTU                576
100
101 #ifndef DEBUG
102 #define SUPPLY_INTERVAL6        30
103 #define RIP_LIFETIME            180
104 #define RIP_HOLDDOWN            120
105 #define RIP_TRIG_INT6_MAX       5
106 #define RIP_TRIG_INT6_MIN       1
107 #else
108 /* only for debugging; can not wait for 30sec to appear a bug */
109 #define SUPPLY_INTERVAL6        10
110 #define RIP_LIFETIME            60
111 #define RIP_HOLDDOWN            40
112 #define RIP_TRIG_INT6_MAX       5
113 #define RIP_TRIG_INT6_MIN       1
114 #endif
115
116 #define RIP6_PORT               521
117 #define RIP6_DEST               "ff02::9"
118
119 #define LOOPBACK_IF             "lo0"
120
121 #endif /* __PACKET_RIPNG_H_DEFINED__ */