udp_usrreq.c (44e33a075818146eb289c39c3ca2817f54517c9f) udp_usrreq.c (97021c246444967a8f441a90076fb4f7ef22fb3a)
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

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

108static int udp_cksum = 1;
109SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW, &udp_cksum,
110 0, "compute udp checksum");
111
112int udp_log_in_vain = 0;
113SYSCTL_INT(_net_inet_udp, OID_AUTO, log_in_vain, CTLFLAG_RW,
114 &udp_log_in_vain, 0, "Log all incoming UDP packets");
115
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

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

108static int udp_cksum = 1;
109SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW, &udp_cksum,
110 0, "compute udp checksum");
111
112int udp_log_in_vain = 0;
113SYSCTL_INT(_net_inet_udp, OID_AUTO, log_in_vain, CTLFLAG_RW,
114 &udp_log_in_vain, 0, "Log all incoming UDP packets");
115
116SYSCTL_INT(_net_inet_udp, OID_AUTO, blackhole, CTLFLAG_RW, &udp_blackhole, 0,
116SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_udp, OID_AUTO, blackhole,
117 CTLFLAG_RW, udp_blackhole, 0,
117 "Do not send port unreachables for refused connects");
118
119u_long udp_sendspace = 9216; /* really max datagram size */
120 /* 40 1K datagrams */
121SYSCTL_ULONG(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
122 &udp_sendspace, 0, "Maximum outgoing UDP datagram size");
123
124u_long udp_recvspace = 40 * (1024 +

--- 1165 unchanged lines hidden ---
118 "Do not send port unreachables for refused connects");
119
120u_long udp_sendspace = 9216; /* really max datagram size */
121 /* 40 1K datagrams */
122SYSCTL_ULONG(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
123 &udp_sendspace, 0, "Maximum outgoing UDP datagram size");
124
125u_long udp_recvspace = 40 * (1024 +

--- 1165 unchanged lines hidden ---