119dc6445SKristof Provost /*- 219dc6445SKristof Provost * Copyright (C) 2000 WIDE Project. 319dc6445SKristof Provost * All rights reserved. 419dc6445SKristof Provost * 519dc6445SKristof Provost * Redistribution and use in source and binary forms, with or without 619dc6445SKristof Provost * modification, are permitted provided that the following conditions 719dc6445SKristof Provost * are met: 819dc6445SKristof Provost * 1. Redistributions of source code must retain the above copyright 919dc6445SKristof Provost * notice, this list of conditions and the following disclaimer. 1019dc6445SKristof Provost * 2. Redistributions in binary form must reproduce the above copyright 1119dc6445SKristof Provost * notice, this list of conditions and the following disclaimer in the 1219dc6445SKristof Provost * documentation and/or other materials provided with the distribution. 1319dc6445SKristof Provost * 3. Neither the name of the project nor the names of its contributors 1419dc6445SKristof Provost * may be used to endorse or promote products derived from this software 1519dc6445SKristof Provost * without specific prior written permission. 1619dc6445SKristof Provost * 1719dc6445SKristof Provost * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 1819dc6445SKristof Provost * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1919dc6445SKristof Provost * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2019dc6445SKristof Provost * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2119dc6445SKristof Provost * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2219dc6445SKristof Provost * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2319dc6445SKristof Provost * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2419dc6445SKristof Provost * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2519dc6445SKristof Provost * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2619dc6445SKristof Provost * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2719dc6445SKristof Provost * SUCH DAMAGE. 2819dc6445SKristof Provost */ 2919dc6445SKristof Provost 3019dc6445SKristof Provost #ifndef _NET_IF_STF_H_ 3119dc6445SKristof Provost #define _NET_IF_STF_H_ 3219dc6445SKristof Provost 33*b29c145cSKristof Provost #include <netinet/in.h> 34*b29c145cSKristof Provost 3519dc6445SKristof Provost struct stfv4args { 3619dc6445SKristof Provost struct in_addr srcv4_addr; /* Our IPv4 src/WAN address */ 3719dc6445SKristof Provost struct in_addr braddr; /* The border relay IPv4 address */ 3819dc6445SKristof Provost int v4_prefixlen; /* The length of the IPv4 prefix. (I.e. 3919dc6445SKristof Provost the number of bits of the IPv4 4019dc6445SKristof Provost address not encoded in the IPv6 4119dc6445SKristof Provost address. */ 4219dc6445SKristof Provost }; 4319dc6445SKristof Provost 4419dc6445SKristof Provost #define STF6RD_SV4NET 1 4519dc6445SKristof Provost #define STF6RD_GV4NET 2 4619dc6445SKristof Provost #define STF6RD_SBR 3 4719dc6445SKristof Provost 4819dc6445SKristof Provost #endif /* _NET_IF_STF_H_ */ 49