Deleted Added
full compact
if_gif.h (193796) if_gif.h (195699)
1/* $FreeBSD: head/sys/net/if_gif.h 193796 2009-06-09 02:27:59Z hrs $ */
1/* $FreeBSD: head/sys/net/if_gif.h 195699 2009-07-14 22:48:30Z rwatson $ */
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

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

114void gif_input(struct mbuf *, int, struct ifnet *);
115int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *,
116 struct route *);
117int gif_ioctl(struct ifnet *, u_long, caddr_t);
118int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *);
119void gif_delete_tunnel(struct ifnet *);
120int gif_encapcheck(const struct mbuf *, int, int, void *);
121
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

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

114void gif_input(struct mbuf *, int, struct ifnet *);
115int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *,
116 struct route *);
117int gif_ioctl(struct ifnet *, u_long, caddr_t);
118int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *);
119void gif_delete_tunnel(struct ifnet *);
120int gif_encapcheck(const struct mbuf *, int, int, void *);
121
122/*
123 * Virtualization support
124 */
122VNET_DECLARE(int, ip_gif_ttl);
123#define V_ip_gif_ttl VNET_GET(ip_gif_ttl)
125
124
126struct vnet_gif {
127 LIST_HEAD(, gif_softc) _gif_softc_list;
128 int _max_gif_nesting;
129 int _parallel_tunnels;
130 int _ip_gif_ttl;
131 int _ip6_gif_hlim;
132};
133
134#ifndef VIMAGE
135#ifndef VIMAGE_GLOBALS
136extern struct vnet_gif vnet_gif_0;
137#endif
138#endif
139
140#define INIT_VNET_GIF(vnet) \
141 INIT_FROM_VNET(vnet, VNET_MOD_GIF, struct vnet_gif, vnet_gif)
142
143#define VNET_GIF(sym) VSYM(vnet_gif, sym)
144
145#define V_gif_softc_list VNET_GIF(gif_softc_list)
146#define V_max_gif_nesting VNET_GIF(max_gif_nesting)
147#define V_parallel_tunnels VNET_GIF(parallel_tunnels)
148#define V_ip_gif_ttl VNET_GIF(ip_gif_ttl)
149#define V_ip6_gif_hlim VNET_GIF(ip6_gif_hlim)
150
151#endif /* _KERNEL */
152
153#define GIFGOPTS _IOWR('i', 150, struct ifreq)
154#define GIFSOPTS _IOW('i', 151, struct ifreq)
155
156#define GIF_ACCEPT_REVETHIP 0x0001
157#define GIF_SEND_REVETHIP 0x0010
158#define GIF_OPTMASK (GIF_ACCEPT_REVETHIP|GIF_SEND_REVETHIP)
159
160#endif /* _NET_IF_GIF_H_ */
125#endif /* _KERNEL */
126
127#define GIFGOPTS _IOWR('i', 150, struct ifreq)
128#define GIFSOPTS _IOW('i', 151, struct ifreq)
129
130#define GIF_ACCEPT_REVETHIP 0x0001
131#define GIF_SEND_REVETHIP 0x0010
132#define GIF_OPTMASK (GIF_ACCEPT_REVETHIP|GIF_SEND_REVETHIP)
133
134#endif /* _NET_IF_GIF_H_ */