162607Sitojun/* $FreeBSD: releng/11.0/usr.sbin/route6d/route6d.h 122676 2003-11-14 17:16:12Z ume $ */ 2122676Sume/* $KAME: route6d.h,v 1.8 2003/05/28 09:11:13 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#define ROUTE6D_DUMP "/var/run/route6d_dump" 3455163Sshin#define ROUTE6D_PID "/var/run/route6d.pid" 3555163Sshin 3655163Sshin#define RIP6_VERSION 1 3755163Sshin 3855163Sshin#define RIP6_REQUEST 1 3955163Sshin#define RIP6_RESPONSE 2 4055163Sshin 4178064Sume#define IFC_CHANGED 1 4278064Sume 4355163Sshinstruct netinfo6 { 44119035Sume struct in6_addr rip6_dest; 4555163Sshin u_short rip6_tag; 4655163Sshin u_char rip6_plen; 4755163Sshin u_char rip6_metric; 4855163Sshin}; 4955163Sshin 5055163Sshinstruct rip6 { 5155163Sshin u_char rip6_cmd; 5255163Sshin u_char rip6_vers; 5355163Sshin u_char rip6_res1[2]; 54122676Sume struct netinfo6 rip6_nets[1]; 5555163Sshin}; 5655163Sshin 5755163Sshin#define HOPCNT_INFINITY6 16 5855163Sshin#define NEXTHOP_METRIC 0xff 5955163Sshin#define RIP6_MAXMTU 1500 6055163Sshin 61122676Sume#define IFMINMTU 1280 6255163Sshin 6355163Sshin#ifndef DEBUG 6455163Sshin#define SUPPLY_INTERVAL6 30 6555163Sshin#define RIP_LIFETIME 180 6655163Sshin#define RIP_HOLDDOWN 120 6755163Sshin#define RIP_TRIG_INT6_MAX 5 6855163Sshin#define RIP_TRIG_INT6_MIN 1 6955163Sshin#else 7055163Sshin/* only for debugging; can not wait for 30sec to appear a bug */ 7155163Sshin#define SUPPLY_INTERVAL6 10 7255163Sshin#define RIP_LIFETIME 60 7355163Sshin#define RIP_HOLDDOWN 40 7455163Sshin#define RIP_TRIG_INT6_MAX 5 7555163Sshin#define RIP_TRIG_INT6_MIN 1 7655163Sshin#endif 7755163Sshin 7855163Sshin#define RIP6_PORT 521 7955163Sshin#define RIP6_DEST "ff02::9" 8055163Sshin 8155163Sshin#define LOOPBACK_IF "lo0" 82