Re: Linux tcpPassiveOpens in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: tony bourke <tony@vegan.net>
   Date: Fri, 22 Mar 2002 15:36:27 -0500 (EST)

   Sami Farin recommended I bring this up with this list.  I was doing
   research into performance metrics when I noticed that tcpPassiveOpens
   counter wasn't being incremented in the Linux kernel.

Funny, we haven't been bumping this couter for something
on the order of 6 years. :-)

Here is the fix I am using:

--- net/ipv4/tcp_minisocks.c.~1~	Fri Mar 22 12:51:01 2002
+++ net/ipv4/tcp_minisocks.c	Fri Mar 22 12:53:43 2002
@@ -782,6 +782,8 @@
 			newtp->ack.last_seg_size = skb->len-newtp->tcp_header_len;
 		newtp->mss_clamp = req->mss;
 		TCP_ECN_openreq_child(newtp, req);
+
+		TCP_INC_STATS_BH(TcpPassiveOpens);
 	}
 	return newsk;
 }
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux