Deleted Added
full compact
if_gif.h (183550) if_gif.h (185895)
1/* $FreeBSD: head/sys/net/if_gif.h 183550 2008-10-02 15:37:58Z zec $ */
1/* $FreeBSD: head/sys/net/if_gif.h 185895 2008-12-10 23:12:39Z zec $ */
2/* $KAME: if_gif.h,v 1.17 2000/09/11 11:36:41 sumikawa Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 98 unchanged lines hidden (view full) ---

108int gif_ioctl(struct ifnet *, u_long, caddr_t);
109int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *);
110void gif_delete_tunnel(struct ifnet *);
111int gif_encapcheck(const struct mbuf *, int, int, void *);
112
113/*
114 * Virtualization support
115 */
2/* $KAME: if_gif.h,v 1.17 2000/09/11 11:36:41 sumikawa Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 98 unchanged lines hidden (view full) ---

108int gif_ioctl(struct ifnet *, u_long, caddr_t);
109int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *);
110void gif_delete_tunnel(struct ifnet *);
111int gif_encapcheck(const struct mbuf *, int, int, void *);
112
113/*
114 * Virtualization support
115 */
116#ifdef VIMAGE
116
117struct vnet_gif {
118 LIST_HEAD(, gif_softc) _gif_softc_list;
119 int _max_gif_nesting;
120 int _parallel_tunnels;
121 int _ip_gif_ttl;
122 int _ip6_gif_hlim;
123};
117struct vnet_gif {
118 LIST_HEAD(, gif_softc) _gif_softc_list;
119 int _max_gif_nesting;
120 int _parallel_tunnels;
121 int _ip_gif_ttl;
122 int _ip6_gif_hlim;
123};
124
125#ifndef VIMAGE
126#ifndef VIMAGE_GLOBALS
127extern struct vnet_gif vnet_gif_0;
124#endif
128#endif
129#endif
125
126#define INIT_VNET_GIF(vnet) \
127 INIT_FROM_VNET(vnet, VNET_MOD_GIF, struct vnet_gif, vnet_gif)
128
129#define VNET_GIF(sym) VSYM(vnet_gif, sym)
130
131#define V_gif_softc_list VNET_GIF(gif_softc_list)
132#define V_max_gif_nesting VNET_GIF(max_gif_nesting)
133#define V_parallel_tunnels VNET_GIF(parallel_tunnels)
134#define V_ip_gif_ttl VNET_GIF(ip_gif_ttl)
135#define V_ip6_gif_hlim VNET_GIF(ip6_gif_hlim)
136
137#endif /* _KERNEL */
138
139#endif /* _NET_IF_GIF_H_ */
130
131#define INIT_VNET_GIF(vnet) \
132 INIT_FROM_VNET(vnet, VNET_MOD_GIF, struct vnet_gif, vnet_gif)
133
134#define VNET_GIF(sym) VSYM(vnet_gif, sym)
135
136#define V_gif_softc_list VNET_GIF(gif_softc_list)
137#define V_max_gif_nesting VNET_GIF(max_gif_nesting)
138#define V_parallel_tunnels VNET_GIF(parallel_tunnels)
139#define V_ip_gif_ttl VNET_GIF(ip_gif_ttl)
140#define V_ip6_gif_hlim VNET_GIF(ip6_gif_hlim)
141
142#endif /* _KERNEL */
143
144#endif /* _NET_IF_GIF_H_ */