rrenumd.h revision 55505
180708Sjake/* 286228Stmm * Copyright (C) 1998 WIDE Project. 380708Sjake * All rights reserved. 480708Sjake * 586228Stmm * Redistribution and use in source and binary forms, with or without 686228Stmm * modification, are permitted provided that the following conditions 786228Stmm * are met: 886228Stmm * 1. Redistributions of source code must retain the above copyright 980708Sjake * notice, this list of conditions and the following disclaimer. 1080708Sjake * 2. Redistributions in binary form must reproduce the above copyright 1180708Sjake * notice, this list of conditions and the following disclaimer in the 1280708Sjake * documentation and/or other materials provided with the distribution. 1380708Sjake * 3. All advertising materials mentioning features or use of this software 1480708Sjake * must display the following acknowledgement: 1580708Sjake * This product includes software developed by WIDE Project and 1680708Sjake * its contributors. 1786228Stmm * 4. Neither the name of the project nor the names of its contributors 1886228Stmm * may be used to endorse or promote products derived from this software 1986228Stmm * without specific prior written permission. 2086228Stmm * 2186228Stmm * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 2286228Stmm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2386228Stmm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2480708Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2586228Stmm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2686228Stmm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2786228Stmm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2886228Stmm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2986228Stmm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3086228Stmm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3186228Stmm * SUCH DAMAGE. 3286228Stmm * 3386228Stmm * $FreeBSD: head/usr.sbin/rrenumd/rrenumd.h 55505 2000-01-06 12:40:54Z shin $ 3486228Stmm */ 3586228Stmm 3686228Stmmstruct dst_list { 3786228Stmm struct dst_list *dl_next; 3886228Stmm struct sockaddr *dl_dst; 3986228Stmm}; 4086228Stmm 4180708Sjakeextern struct dst_list *dl_head; 4286228Stmm 4386228Stmmstruct payload_list { 4486228Stmm struct payload_list *pl_next; 4586228Stmm struct iovec pl_sndiov; 4686228Stmm struct icmp6_router_renum pl_irr; 4786228Stmm struct rr_pco_match pl_rpm; 4886228Stmm /* currently, support only 1 rr_pco_use field per packet */ 4986228Stmm struct rr_pco_use pl_rpu; 5086228Stmm}; 5186228Stmm 5286228Stmmextern struct payload_list *pl_head; 5386228Stmmextern u_int retry; 5486228Stmmextern int with_v4dest, with_v6dest; 5586228Stmm 5686228Stmm#define DEF_VLTIME 2592000 5786228Stmm#define DEF_PLTIME 604800 5886228Stmm