Deleted Added
full compact
if_gre.h (223223) if_gre.h (271918)
1/* $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $ */
1/* $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.h 223223 2011-06-18 09:34:03Z bz $ */
2/* $FreeBSD: head/sys/net/if_gre.h 271918 2014-09-21 03:56:06Z hrs $ */
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 *

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

171#define GREGADDRD _IOWR('i', 104, struct ifreq)
172#define GRESPROTO _IOW('i' , 105, struct ifreq)
173#define GREGPROTO _IOWR('i', 106, struct ifreq)
174#define GREGKEY _IOWR('i', 107, struct ifreq)
175#define GRESKEY _IOW('i', 108, struct ifreq)
176
177#ifdef _KERNEL
178LIST_HEAD(gre_softc_head, gre_softc);
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 *

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

171#define GREGADDRD _IOWR('i', 104, struct ifreq)
172#define GRESPROTO _IOW('i' , 105, struct ifreq)
173#define GREGPROTO _IOWR('i', 106, struct ifreq)
174#define GREGKEY _IOWR('i', 107, struct ifreq)
175#define GRESKEY _IOW('i', 108, struct ifreq)
176
177#ifdef _KERNEL
178LIST_HEAD(gre_softc_head, gre_softc);
179extern struct mtx gre_mtx;
180extern struct gre_softc_head gre_softc_list;
179VNET_DECLARE(struct gre_softc_head, gre_softc_list);
180#define V_gre_softc_list VNET(gre_softc_list)
181
181
182VNET_DECLARE(struct mtx, gre_mtx);
183#define V_gre_mtx VNET(gre_mtx)
184#define GRE_LIST_LOCK_INIT(x) mtx_init(&V_gre_mtx, "gre_mtx", NULL, \
185 MTX_DEF)
186#define GRE_LIST_LOCK_DESTROY(x) mtx_destroy(&V_gre_mtx)
187#define GRE_LIST_LOCK(x) mtx_lock(&V_gre_mtx)
188#define GRE_LIST_UNLOCK(x) mtx_unlock(&V_gre_mtx)
189
182u_int16_t gre_in_cksum(u_int16_t *, u_int);
183#endif /* _KERNEL */
184
185#endif
190u_int16_t gre_in_cksum(u_int16_t *, u_int);
191#endif /* _KERNEL */
192
193#endif