Deleted Added
full compact
if_gre.h (103026) if_gre.h (103032)
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 103026 2002-09-06 17:12:50Z sobomax $ */
2/* $FreeBSD: head/sys/net/if_gre.h 103032 2002-09-06 18:16:03Z 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 *

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

135} __attribute__((__packed__));
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
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 *

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

135} __attribute__((__packed__));
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
143extern int ip_gre_ttl;
144
145/*
146 * ioctls needed to manipulate the interface
147 */
148
149#define GRESADDRS _IOW('i', 101, struct ifreq)
150#define GRESADDRD _IOW('i', 102, struct ifreq)
151#define GREGADDRS _IOWR('i', 103, struct ifreq)
152#define GREGADDRD _IOWR('i', 104, struct ifreq)
153#define GRESPROTO _IOW('i' , 105, struct ifreq)
154#define GREGPROTO _IOWR('i', 106, struct ifreq)
155
156#ifdef _KERNEL
157LIST_HEAD(gre_softc_head, gre_softc);
158extern struct gre_softc_head gre_softc_list;
159
143
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
160int gre_ioctl __P((struct ifnet *, u_long, caddr_t));
161int gre_output __P((struct ifnet *, struct mbuf *, struct sockaddr *,
162 struct rtentry *rt));
163u_short gre_in_cksum(u_short *p, u_int len);
164#endif /* _KERNEL */
165
166#endif
159u_short gre_in_cksum(u_short *p, u_int len);
160#endif /* _KERNEL */
161
162#endif