Fix markup. Fix backslashes to surive roff.
[netbsd-mini2440.git] / dist / tcpdump / route6d.h
blob73e24e375f669c49bd5300a3e8ad01353aed61f1
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 1995, 1996, 1997 and 1998 WIDE Project.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the project nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
32 * Header: /tcpdump/master/tcpdump/route6d.h,v 1.5 2002/12/11 07:14:10 guy Exp
35 #define RIP6_VERSION 1
37 #define RIP6_REQUEST 1
38 #define RIP6_RESPONSE 2
40 struct netinfo6 {
41 struct in6_addr rip6_dest;
42 u_int16_t rip6_tag;
43 u_int8_t rip6_plen;
44 u_int8_t rip6_metric;
47 struct rip6 {
48 u_int8_t rip6_cmd;
49 u_int8_t rip6_vers;
50 u_int8_t rip6_res1[2];
51 union {
52 struct netinfo6 ru6_nets[1];
53 char ru6_tracefile[1];
54 } rip6un;
55 #define rip6_nets rip6un.ru6_nets
56 #define rip6_tracefile rip6un.ru6_tracefile
59 #define HOPCNT_INFINITY6 16
60 #define MAXRTE 24
61 #define NEXTHOP_METRIC 0xff
63 #ifndef DEBUG
64 #define SUPPLY_INTERVAL6 30
65 #define RIP_LIFETIME 180
66 #define RIP_HOLDDOWN 120
67 #define RIP_TRIG_INTERVAL6 5
68 #define RIP_TRIG_INTERVAL6_MIN 1
69 #else
70 /* only for debugging; can not wait for 30sec to appear a bug */
71 #define SUPPLY_INTERVAL6 10
72 #define RIP_LIFETIME 60
73 #define RIP_HOLDDOWN 40
74 #define RIP_TRIG_INTERVAL6 5
75 #define RIP_TRIG_INTERVAL6_MIN 1
76 #endif
78 #define RIP6_PORT 521
79 #define RIP6_DEST "ff02::9"