route6d.h revision 62607
162607Sitojun/* $FreeBSD: head/usr.sbin/route6d/route6d.h 62607 2000-07-05 02:14:16Z itojun $ */ 262607Sitojun/* $KAME: route6d.h,v 1.3 2000/02/25 06:15:06 itojun Exp $ */ 355163Sshin 455163Sshin/* 555163Sshin * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 655163Sshin * All rights reserved. 762607Sitojun * 855163Sshin * Redistribution and use in source and binary forms, with or without 955163Sshin * modification, are permitted provided that the following conditions 1055163Sshin * are met: 1155163Sshin * 1. Redistributions of source code must retain the above copyright 1255163Sshin * notice, this list of conditions and the following disclaimer. 1355163Sshin * 2. Redistributions in binary form must reproduce the above copyright 1455163Sshin * notice, this list of conditions and the following disclaimer in the 1555163Sshin * documentation and/or other materials provided with the distribution. 1655163Sshin * 3. Neither the name of the project nor the names of its contributors 1755163Sshin * may be used to endorse or promote products derived from this software 1855163Sshin * without specific prior written permission. 1962607Sitojun * 2055163Sshin * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 2155163Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2255163Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2355163Sshin * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2455163Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2555163Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2655163Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2755163Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2855163Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2955163Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3055163Sshin * SUCH DAMAGE. 3155163Sshin */ 3255163Sshin 3362607Sitojun/* not yet in use 3455163Sshin#define ROUTE6D_CONF "/usr/local/v6/etc/route6d.conf" 3555163Sshin*/ 3655163Sshin 3762607Sitojun#define ROUTE6D_DUMP "/var/run/route6d_dump" 3855163Sshin#define ROUTE6D_PID "/var/run/route6d.pid" 3955163Sshin 4055163Sshin#define RIP6_VERSION 1 4155163Sshin 4255163Sshin#define RIP6_REQUEST 1 4355163Sshin#define RIP6_RESPONSE 2 4455163Sshin 4555163Sshinstruct netinfo6 { 4655163Sshin struct in6_addr rip6_dest; 4755163Sshin u_short rip6_tag; 4855163Sshin u_char rip6_plen; 4955163Sshin u_char rip6_metric; 5055163Sshin}; 5155163Sshin 5255163Sshinstruct rip6 { 5355163Sshin u_char rip6_cmd; 5455163Sshin u_char rip6_vers; 5555163Sshin u_char rip6_res1[2]; 5655163Sshin union { 5755163Sshin struct netinfo6 ru6_nets[1]; 5855163Sshin char ru6_tracefile[1]; 5955163Sshin } rip6un; 6055163Sshin#define rip6_nets rip6un.ru6_nets 6155163Sshin#define rip6_tracefile rip6un.ru6_tracefile 6255163Sshin}; 6355163Sshin 6455163Sshin#define HOPCNT_INFINITY6 16 6555163Sshin#define NEXTHOP_METRIC 0xff 6655163Sshin#define RIP6_MAXMTU 1500 6755163Sshin 6855163Sshin#define IFMINMTU 576 6955163Sshin 7055163Sshin#ifndef DEBUG 7155163Sshin#define SUPPLY_INTERVAL6 30 7255163Sshin#define RIP_LIFETIME 180 7355163Sshin#define RIP_HOLDDOWN 120 7455163Sshin#define RIP_TRIG_INT6_MAX 5 7555163Sshin#define RIP_TRIG_INT6_MIN 1 7655163Sshin#else 7755163Sshin/* only for debugging; can not wait for 30sec to appear a bug */ 7855163Sshin#define SUPPLY_INTERVAL6 10 7955163Sshin#define RIP_LIFETIME 60 8055163Sshin#define RIP_HOLDDOWN 40 8155163Sshin#define RIP_TRIG_INT6_MAX 5 8255163Sshin#define RIP_TRIG_INT6_MIN 1 8355163Sshin#endif 8455163Sshin 8555163Sshin#define RIP6_PORT 521 8655163Sshin#define RIP6_DEST "ff02::9" 8755163Sshin 8855163Sshin#define LOOPBACK_IF "lo0" 89