frag6.c (215317) | frag6.c (215701) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $ 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet6/frag6.c 215317 2010-11-14 20:38:11Z dim $"); | 33__FBSDID("$FreeBSD: head/sys/netinet6/frag6.c 215701 2010-11-22 19:32:54Z dim $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> 39#include <sys/domain.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> --- 28 unchanged lines hidden (view full) --- 70static void frag6_insque(struct ip6q *, struct ip6q *); 71static void frag6_remque(struct ip6q *); 72static void frag6_freef(struct ip6q *); 73 74static struct mtx ip6qlock; 75/* 76 * These fields all protected by ip6qlock. 77 */ | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> 39#include <sys/domain.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> --- 28 unchanged lines hidden (view full) --- 70static void frag6_insque(struct ip6q *, struct ip6q *); 71static void frag6_remque(struct ip6q *); 72static void frag6_freef(struct ip6q *); 73 74static struct mtx ip6qlock; 75/* 76 * These fields all protected by ip6qlock. 77 */ |
78STATIC_VNET_DEFINE(u_int, frag6_nfragpackets); 79STATIC_VNET_DEFINE(u_int, frag6_nfrags); 80STATIC_VNET_DEFINE(struct ip6q, ip6q); /* ip6 reassemble queue */ | 78static VNET_DEFINE(u_int, frag6_nfragpackets); 79static VNET_DEFINE(u_int, frag6_nfrags); 80static VNET_DEFINE(struct ip6q, ip6q); /* ip6 reassemble queue */ |
81 82#define V_frag6_nfragpackets VNET(frag6_nfragpackets) 83#define V_frag6_nfrags VNET(frag6_nfrags) 84#define V_ip6q VNET(ip6q) 85 86#define IP6Q_LOCK_INIT() mtx_init(&ip6qlock, "ip6qlock", NULL, MTX_DEF); 87#define IP6Q_LOCK() mtx_lock(&ip6qlock) 88#define IP6Q_TRYLOCK() mtx_trylock(&ip6qlock) --- 691 unchanged lines hidden --- | 81 82#define V_frag6_nfragpackets VNET(frag6_nfragpackets) 83#define V_frag6_nfrags VNET(frag6_nfrags) 84#define V_ip6q VNET(ip6q) 85 86#define IP6Q_LOCK_INIT() mtx_init(&ip6qlock, "ip6qlock", NULL, MTX_DEF); 87#define IP6Q_LOCK() mtx_lock(&ip6qlock) 88#define IP6Q_TRYLOCK() mtx_trylock(&ip6qlock) --- 691 unchanged lines hidden --- |