in_gif.c (196039) | in_gif.c (207369) |
---|---|
1/* $KAME: in_gif.c,v 1.54 2001/05/14 14:02:16 itojun Exp $ */ 2 3/*- 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * 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 --- 16 unchanged lines hidden (view full) --- 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 32#include <sys/cdefs.h> | 1/* $KAME: in_gif.c,v 1.54 2001/05/14 14:02:16 itojun Exp $ */ 2 3/*- 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * 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 --- 16 unchanged lines hidden (view full) --- 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 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/in_gif.c 196039 2009-08-02 19:43:32Z rwatson $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/in_gif.c 207369 2010-04-29 11:52:42Z bz $"); |
34 35#include "opt_mrouting.h" 36#include "opt_inet.h" 37#include "opt_inet6.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/socket.h> --- 38 unchanged lines hidden (view full) --- 80 .pr_protocol = 0/* IPPROTO_IPV[46] */, 81 .pr_flags = PR_ATOMIC|PR_ADDR, 82 .pr_input = in_gif_input, 83 .pr_output = (pr_output_t*)rip_output, 84 .pr_ctloutput = rip_ctloutput, 85 .pr_usrreqs = &rip_usrreqs 86}; 87 | 34 35#include "opt_mrouting.h" 36#include "opt_inet.h" 37#include "opt_inet6.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/socket.h> --- 38 unchanged lines hidden (view full) --- 80 .pr_protocol = 0/* IPPROTO_IPV[46] */, 81 .pr_flags = PR_ATOMIC|PR_ADDR, 82 .pr_input = in_gif_input, 83 .pr_output = (pr_output_t*)rip_output, 84 .pr_ctloutput = rip_ctloutput, 85 .pr_usrreqs = &rip_usrreqs 86}; 87 |
88VNET_DEFINE(int, ip_gif_ttl) = GIF_TTL; 89#define V_ip_gif_ttl VNET(ip_gif_ttl) |
|
88SYSCTL_VNET_INT(_net_inet_ip, IPCTL_GIF_TTL, gifttl, CTLFLAG_RW, 89 &VNET_NAME(ip_gif_ttl), 0, ""); 90 91int 92in_gif_output(struct ifnet *ifp, int family, struct mbuf *m) 93{ 94 struct gif_softc *sc = ifp->if_softc; 95 struct sockaddr_in *dst = (struct sockaddr_in *)&sc->gif_ro.ro_dst; --- 370 unchanged lines hidden --- | 90SYSCTL_VNET_INT(_net_inet_ip, IPCTL_GIF_TTL, gifttl, CTLFLAG_RW, 91 &VNET_NAME(ip_gif_ttl), 0, ""); 92 93int 94in_gif_output(struct ifnet *ifp, int family, struct mbuf *m) 95{ 96 struct gif_softc *sc = ifp->if_softc; 97 struct sockaddr_in *dst = (struct sockaddr_in *)&sc->gif_ro.ro_dst; --- 370 unchanged lines hidden --- |