Deleted Added
full compact
if_gre.h (103070) if_gre.h (103120)
1/* $NetBSD: if_gre.h,v 1.10 2002/02/24 17:22:20 martin Exp $ */
1/* $NetBSD: if_gre.h,v 1.10 2002/02/24 17:22:20 martin Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.h 103070 2002-09-07 12:22:17Z sobomax $ */
2/* $FreeBSD: head/sys/net/if_gre.h 103120 2002-09-09 08:25:00Z sobomax $ */
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *

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

36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#ifndef _NET_IF_GRE_H
41#define _NET_IF_GRE_H
42
43#include <sys/ioccom.h>
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *

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

36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#ifndef _NET_IF_GRE_H
41#define _NET_IF_GRE_H
42
43#include <sys/ioccom.h>
44#ifdef _KERNEL
44#include <sys/queue.h>
45
46struct gre_softc {
47 struct ifnet sc_if;
48 LIST_ENTRY(gre_softc) sc_list;
49 int gre_unit;
50 int gre_flags;
51 struct in_addr g_src; /* source address of gre packets */

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

136
137
138#define MOB_H_SIZ_S (sizeof(struct mobile_h) - sizeof(u_int32_t))
139#define MOB_H_SIZ_L (sizeof(struct mobile_h))
140#define MOB_H_SBIT 0x0080
141
142#define GRE_TTL 30
143
45#include <sys/queue.h>
46
47struct gre_softc {
48 struct ifnet sc_if;
49 LIST_ENTRY(gre_softc) sc_list;
50 int gre_unit;
51 int gre_flags;
52 struct in_addr g_src; /* source address of gre packets */

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

137
138
139#define MOB_H_SIZ_S (sizeof(struct mobile_h) - sizeof(u_int32_t))
140#define MOB_H_SIZ_L (sizeof(struct mobile_h))
141#define MOB_H_SBIT 0x0080
142
143#define GRE_TTL 30
144
145#endif /* _KERNEL */
146
144/*
145 * ioctls needed to manipulate the interface
146 */
147
148#define GRESADDRS _IOW('i', 101, struct ifreq)
149#define GRESADDRD _IOW('i', 102, struct ifreq)
150#define GREGADDRS _IOWR('i', 103, struct ifreq)
151#define GREGADDRD _IOWR('i', 104, struct ifreq)
152#define GRESPROTO _IOW('i' , 105, struct ifreq)
153#define GREGPROTO _IOWR('i', 106, struct ifreq)
154
155#ifdef _KERNEL
156LIST_HEAD(gre_softc_head, gre_softc);
157extern struct gre_softc_head gre_softc_list;
158
159u_short gre_in_cksum(u_short *p, u_int len);
160#endif /* _KERNEL */
161
162#endif
147/*
148 * ioctls needed to manipulate the interface
149 */
150
151#define GRESADDRS _IOW('i', 101, struct ifreq)
152#define GRESADDRD _IOW('i', 102, struct ifreq)
153#define GREGADDRS _IOWR('i', 103, struct ifreq)
154#define GREGADDRD _IOWR('i', 104, struct ifreq)
155#define GRESPROTO _IOW('i' , 105, struct ifreq)
156#define GREGPROTO _IOWR('i', 106, struct ifreq)
157
158#ifdef _KERNEL
159LIST_HEAD(gre_softc_head, gre_softc);
160extern struct gre_softc_head gre_softc_list;
161
162u_short gre_in_cksum(u_short *p, u_int len);
163#endif /* _KERNEL */
164
165#endif