udp_usrreq.c (195699) | udp_usrreq.c (195727) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2008 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2008 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/netinet/udp_usrreq.c 195699 2009-07-14 22:48:30Z rwatson $"); | 35__FBSDID("$FreeBSD: head/sys/netinet/udp_usrreq.c 195727 2009-07-16 21:13:04Z rwatson $"); |
36 37#include "opt_ipfw.h" 38#include "opt_inet6.h" 39#include "opt_ipsec.h" 40 41#include <sys/param.h> 42#include <sys/domain.h> 43#include <sys/eventhandler.h> --- 87 unchanged lines hidden (view full) --- 131SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW, 132 &udp_recvspace, 0, "Maximum space for incoming UDP datagrams"); 133 134VNET_DEFINE(struct inpcbhead, udb); /* from udp_var.h */ 135VNET_DEFINE(struct inpcbinfo, udbinfo); 136static VNET_DEFINE(uma_zone_t, udpcb_zone); 137VNET_DEFINE(struct udpstat, udpstat); /* from udp_var.h */ 138 | 36 37#include "opt_ipfw.h" 38#include "opt_inet6.h" 39#include "opt_ipsec.h" 40 41#include <sys/param.h> 42#include <sys/domain.h> 43#include <sys/eventhandler.h> --- 87 unchanged lines hidden (view full) --- 131SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW, 132 &udp_recvspace, 0, "Maximum space for incoming UDP datagrams"); 133 134VNET_DEFINE(struct inpcbhead, udb); /* from udp_var.h */ 135VNET_DEFINE(struct inpcbinfo, udbinfo); 136static VNET_DEFINE(uma_zone_t, udpcb_zone); 137VNET_DEFINE(struct udpstat, udpstat); /* from udp_var.h */ 138 |
139#define V_udpcb_zone VNET_GET(udpcb_zone) | 139#define V_udpcb_zone VNET(udpcb_zone) |
140 141#ifndef UDBHASHSIZE 142#define UDBHASHSIZE 128 143#endif 144 145SYSCTL_VNET_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RW, 146 &VNET_NAME(udpstat), udpstat, 147 "UDP statistics (struct udpstat, netinet/udp_var.h)"); --- 1466 unchanged lines hidden --- | 140 141#ifndef UDBHASHSIZE 142#define UDBHASHSIZE 128 143#endif 144 145SYSCTL_VNET_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RW, 146 &VNET_NAME(udpstat), udpstat, 147 "UDP statistics (struct udpstat, netinet/udp_var.h)"); --- 1466 unchanged lines hidden --- |