frag6.c (195699) | frag6.c (195727) |
---|---|
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 195699 2009-07-14 22:48:30Z rwatson $"); | 33__FBSDID("$FreeBSD: head/sys/netinet6/frag6.c 195727 2009-07-16 21:13:04Z rwatson $"); |
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> --- 33 unchanged lines hidden (view full) --- 75static struct mtx ip6qlock; 76/* 77 * These fields all protected by ip6qlock. 78 */ 79static VNET_DEFINE(u_int, frag6_nfragpackets); 80static VNET_DEFINE(u_int, frag6_nfrags); 81static VNET_DEFINE(struct ip6q, ip6q); /* ip6 reassemble queue */ 82 | 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> --- 33 unchanged lines hidden (view full) --- 75static struct mtx ip6qlock; 76/* 77 * These fields all protected by ip6qlock. 78 */ 79static VNET_DEFINE(u_int, frag6_nfragpackets); 80static VNET_DEFINE(u_int, frag6_nfrags); 81static VNET_DEFINE(struct ip6q, ip6q); /* ip6 reassemble queue */ 82 |
83#define V_frag6_nfragpackets VNET_GET(frag6_nfragpackets) 84#define V_frag6_nfrags VNET_GET(frag6_nfrags) 85#define V_ip6q VNET_GET(ip6q) | 83#define V_frag6_nfragpackets VNET(frag6_nfragpackets) 84#define V_frag6_nfrags VNET(frag6_nfrags) 85#define V_ip6q VNET(ip6q) |
86 87#define IP6Q_LOCK_INIT() mtx_init(&ip6qlock, "ip6qlock", NULL, MTX_DEF); 88#define IP6Q_LOCK() mtx_lock(&ip6qlock) 89#define IP6Q_TRYLOCK() mtx_trylock(&ip6qlock) 90#define IP6Q_LOCK_ASSERT() mtx_assert(&ip6qlock, MA_OWNED) 91#define IP6Q_UNLOCK() mtx_unlock(&ip6qlock) 92 93static MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header"); --- 684 unchanged lines hidden --- | 86 87#define IP6Q_LOCK_INIT() mtx_init(&ip6qlock, "ip6qlock", NULL, MTX_DEF); 88#define IP6Q_LOCK() mtx_lock(&ip6qlock) 89#define IP6Q_TRYLOCK() mtx_trylock(&ip6qlock) 90#define IP6Q_LOCK_ASSERT() mtx_assert(&ip6qlock, MA_OWNED) 91#define IP6Q_UNLOCK() mtx_unlock(&ip6qlock) 92 93static MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header"); --- 684 unchanged lines hidden --- |