svn commit: r292689 - head/sys/netinet

Sergey Kandaurov pluknet at FreeBSD.org
Thu Dec 24 13:57:45 UTC 2015


Author: pluknet
Date: Thu Dec 24 13:57:43 2015
New Revision: 292689
URL: https://svnweb.freebsd.org/changeset/base/292689

Log:
  Fixed comment placement.
  
  Before r12296, this comment described the udp_recvspace default value.
  
  Spotted by:	ru
  Sponsored by:	Nginx, Inc.

Modified:
  head/sys/netinet/udp_usrreq.c

Modified: head/sys/netinet/udp_usrreq.c
==============================================================================
--- head/sys/netinet/udp_usrreq.c	Thu Dec 24 11:56:37 2015	(r292688)
+++ head/sys/netinet/udp_usrreq.c	Thu Dec 24 13:57:43 2015	(r292689)
@@ -128,7 +128,6 @@ SYSCTL_INT(_net_inet_udp, OID_AUTO, blac
     "Do not send port unreachables for refused connects");
 
 u_long	udp_sendspace = 9216;		/* really max datagram size */
-					/* 40 1K datagrams */
 SYSCTL_ULONG(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
     &udp_sendspace, 0, "Maximum outgoing UDP datagram size");
 
@@ -138,7 +137,7 @@ u_long	udp_recvspace = 40 * (1024 +
 #else
 				      sizeof(struct sockaddr_in)
 #endif
-				      );
+				      );	/* 40 1K datagrams */
 
 SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
     &udp_recvspace, 0, "Maximum space for incoming UDP datagrams");


More information about the svn-src-head mailing list