Deleted Added
full compact
udp_usrreq.c (215317) udp_usrreq.c (215701)
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 215317 2010-11-14 20:38:11Z dim $");
35__FBSDID("$FreeBSD: head/sys/netinet/udp_usrreq.c 215701 2010-11-22 19:32:54Z dim $");
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>

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

126#endif
127 );
128
129SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
130 &udp_recvspace, 0, "Maximum space for incoming UDP datagrams");
131
132VNET_DEFINE(struct inpcbhead, udb); /* from udp_var.h */
133VNET_DEFINE(struct inpcbinfo, udbinfo);
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>

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

126#endif
127 );
128
129SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
130 &udp_recvspace, 0, "Maximum space for incoming UDP datagrams");
131
132VNET_DEFINE(struct inpcbhead, udb); /* from udp_var.h */
133VNET_DEFINE(struct inpcbinfo, udbinfo);
134STATIC_VNET_DEFINE(uma_zone_t, udpcb_zone);
134static VNET_DEFINE(uma_zone_t, udpcb_zone);
135#define V_udpcb_zone VNET(udpcb_zone)
136
137#ifndef UDBHASHSIZE
138#define UDBHASHSIZE 128
139#endif
140
141VNET_DEFINE(struct udpstat, udpstat); /* from udp_var.h */
142SYSCTL_VNET_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RW,

--- 1469 unchanged lines hidden ---
135#define V_udpcb_zone VNET(udpcb_zone)
136
137#ifndef UDBHASHSIZE
138#define UDBHASHSIZE 128
139#endif
140
141VNET_DEFINE(struct udpstat, udpstat); /* from udp_var.h */
142SYSCTL_VNET_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RW,

--- 1469 unchanged lines hidden ---