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