if_faith.c (191148) | if_faith.c (195699) |
---|---|
1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/*- 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/*- 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $FreeBSD: head/sys/net/if_faith.c 191148 2009-04-16 20:30:28Z kmacy $ | 31 * $FreeBSD: head/sys/net/if_faith.c 195699 2009-07-14 22:48:30Z rwatson $ |
32 */ 33/* 34 * derived from 35 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 36 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 37 */ 38 39/* --- 32 unchanged lines hidden (view full) --- 72 73#ifdef INET6 74#ifndef INET 75#include <netinet/in.h> 76#endif 77#include <netinet6/in6_var.h> 78#include <netinet/ip6.h> 79#include <netinet6/ip6_var.h> | 32 */ 33/* 34 * derived from 35 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 36 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 37 */ 38 39/* --- 32 unchanged lines hidden (view full) --- 72 73#ifdef INET6 74#ifndef INET 75#include <netinet/in.h> 76#endif 77#include <netinet6/in6_var.h> 78#include <netinet/ip6.h> 79#include <netinet6/ip6_var.h> |
80#include <netinet6/vinet6.h> | |
81#endif 82 83#define FAITHNAME "faith" 84 85struct faith_softc { 86 struct ifnet *sc_ifp; 87}; 88 --- 234 unchanged lines hidden (view full) --- 323/* 324 * XXX could be slow 325 * XXX could be layer violation to call sys/net from sys/netinet6 326 */ 327static int 328faithprefix(in6) 329 struct in6_addr *in6; 330{ | 80#endif 81 82#define FAITHNAME "faith" 83 84struct faith_softc { 85 struct ifnet *sc_ifp; 86}; 87 --- 234 unchanged lines hidden (view full) --- 322/* 323 * XXX could be slow 324 * XXX could be layer violation to call sys/net from sys/netinet6 325 */ 326static int 327faithprefix(in6) 328 struct in6_addr *in6; 329{ |
331 INIT_VNET_INET6(curvnet); | |
332 struct rtentry *rt; 333 struct sockaddr_in6 sin6; 334 int ret; 335 336 if (V_ip6_keepfaith == 0) 337 return 0; 338 339 bzero(&sin6, sizeof(sin6)); --- 14 unchanged lines hidden --- | 330 struct rtentry *rt; 331 struct sockaddr_in6 sin6; 332 int ret; 333 334 if (V_ip6_keepfaith == 0) 335 return 0; 336 337 bzero(&sin6, sizeof(sin6)); --- 14 unchanged lines hidden --- |