[Reconnoiter-devel] [reconnoiter commit] r1503 - trunk/src/modules

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Mon Dec 6 01:26:37 EST 2010


Author: jesus
Date: 2010-12-06 01:26:37 -0500 (Mon, 06 Dec 2010)
New Revision: 1503

Modified:
   trunk/src/modules/ping_icmp.c
Log:
It appears that wicked circumstances can return on = 0 (in a shared-stack solaris container)

Modified: trunk/src/modules/ping_icmp.c
===================================================================
--- trunk/src/modules/ping_icmp.c	2010-12-06 06:16:08 UTC (rev 1502)
+++ trunk/src/modules/ping_icmp.c	2010-12-06 06:26:37 UTC (rev 1503)
@@ -316,6 +316,7 @@
   else {
     socklen_t slen = sizeof(on);
     if(getsockopt(data->ipv4_fd, SOL_SOCKET, SO_SNDBUF, &on, &slen) == 0) {
+      if(on <= 0) on = 1024;
       while(on < (1 << 20)) {
         on <<= 1;
         if(setsockopt(data->ipv4_fd, SOL_SOCKET, SO_SNDBUF,



More information about the Reconnoiter-devel mailing list