1434d523bSKris Kennaway /* $KAME$ */ 2434d523bSKris Kennaway 39a4365d0SYoshinobu Inoue /* 49a4365d0SYoshinobu Inoue * Copyright (C) 1998 WIDE Project. 59a4365d0SYoshinobu Inoue * All rights reserved. 69a4365d0SYoshinobu Inoue * 79a4365d0SYoshinobu Inoue * Redistribution and use in source and binary forms, with or without 89a4365d0SYoshinobu Inoue * modification, are permitted provided that the following conditions 99a4365d0SYoshinobu Inoue * are met: 109a4365d0SYoshinobu Inoue * 1. Redistributions of source code must retain the above copyright 119a4365d0SYoshinobu Inoue * notice, this list of conditions and the following disclaimer. 129a4365d0SYoshinobu Inoue * 2. Redistributions in binary form must reproduce the above copyright 139a4365d0SYoshinobu Inoue * notice, this list of conditions and the following disclaimer in the 149a4365d0SYoshinobu Inoue * documentation and/or other materials provided with the distribution. 159a4365d0SYoshinobu Inoue * 3. All advertising materials mentioning features or use of this software 169a4365d0SYoshinobu Inoue * must display the following acknowledgement: 179a4365d0SYoshinobu Inoue * This product includes software developed by WIDE Project and 189a4365d0SYoshinobu Inoue * its contributors. 199a4365d0SYoshinobu Inoue * 4. Neither the name of the project nor the names of its contributors 209a4365d0SYoshinobu Inoue * may be used to endorse or promote products derived from this software 219a4365d0SYoshinobu Inoue * without specific prior written permission. 229a4365d0SYoshinobu Inoue * 239a4365d0SYoshinobu Inoue * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 249a4365d0SYoshinobu Inoue * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 259a4365d0SYoshinobu Inoue * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 269a4365d0SYoshinobu Inoue * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 279a4365d0SYoshinobu Inoue * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 289a4365d0SYoshinobu Inoue * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 299a4365d0SYoshinobu Inoue * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 309a4365d0SYoshinobu Inoue * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 319a4365d0SYoshinobu Inoue * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 329a4365d0SYoshinobu Inoue * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 339a4365d0SYoshinobu Inoue * SUCH DAMAGE. 349a4365d0SYoshinobu Inoue * 359a4365d0SYoshinobu Inoue * $FreeBSD$ 369a4365d0SYoshinobu Inoue */ 379a4365d0SYoshinobu Inoue 389a4365d0SYoshinobu Inoue struct dst_list { 399a4365d0SYoshinobu Inoue struct dst_list * dl_next; 409a4365d0SYoshinobu Inoue struct sockaddr * dl_dst; 419a4365d0SYoshinobu Inoue }; 429a4365d0SYoshinobu Inoue 439a4365d0SYoshinobu Inoue extern struct dst_list *dl_head; 449a4365d0SYoshinobu Inoue 459a4365d0SYoshinobu Inoue struct payload_list { 469a4365d0SYoshinobu Inoue struct payload_list * pl_next; 479a4365d0SYoshinobu Inoue struct iovec pl_sndiov; 48434d523bSKris Kennaway struct icmp6_router_renum 49434d523bSKris Kennaway pl_irr; 509a4365d0SYoshinobu Inoue struct rr_pco_match pl_rpm; 519a4365d0SYoshinobu Inoue /* currently, support only 1 rr_pco_use field per packet */ 529a4365d0SYoshinobu Inoue struct rr_pco_use pl_rpu; 539a4365d0SYoshinobu Inoue }; 549a4365d0SYoshinobu Inoue 559a4365d0SYoshinobu Inoue extern struct payload_list *pl_head; 569a4365d0SYoshinobu Inoue extern u_int retry; 579a4365d0SYoshinobu Inoue extern int with_v4dest, with_v6dest; 589a4365d0SYoshinobu Inoue 599a4365d0SYoshinobu Inoue #define DEF_VLTIME 2592000 609a4365d0SYoshinobu Inoue #define DEF_PLTIME 604800 61