Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r831 committed - Calculate AckPktsIn if it's not available

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r831 committed - Calculate AckPktsIn if it's not available


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r831 committed - Calculate AckPktsIn if it's not available
  • Date: Fri, 13 Sep 2013 18:02:11 +0000

Revision: 831
Author:

Date: Fri Sep 13 18:02:07 2013 UTC
Log: Calculate AckPktsIn if it's not available


http://code.google.com/p/ndt/source/detail?r=831

Modified:
/trunk/src/web100-util.c

=======================================
--- /trunk/src/web100-util.c Thu Apr 11 14:37:40 2013 UTC
+++ /trunk/src/web100-util.c Fri Sep 13 18:02:07 2013 UTC
@@ -647,10 +647,17 @@
int *AbruptTimeouts, int *SendStall, int *SlowStart,
int *SubsequentTimeouts, int *ThruBytesAcked) {
int i;
+ int PktsIn = -1;
+ int DataPktsIn = -1;
+ int has_AckPktsIn = 0;

for (i = 0; i <= count_vars; i++) {
if (strcmp(web_vars[i].name, "Timeouts") == 0)
*Timeouts = atoi(web_vars[i].value);
+ else if (strcmp(web_vars[i].name, "PktsIn") == 0)
+ PktsIn = atoi(web_vars[i].value);
+ else if (strcmp(web_vars[i].name, "DataPktsIn") == 0)
+ DataPktsIn = atoi(web_vars[i].value);
else if (strcmp(web_vars[i].name, "SumRTT") == 0)
*SumRTT = atoi(web_vars[i].value);
else if (strcmp(web_vars[i].name, "CountRTT") == 0)
@@ -667,8 +674,10 @@
*CurrentMSS = atoi(web_vars[i].value);
else if (strcmp(web_vars[i].name, "DupAcksIn") == 0)
*DupAcksIn = atoi(web_vars[i].value);
- else if (strcmp(web_vars[i].name, "AckPktsIn") == 0)
+ else if (strcmp(web_vars[i].name, "AckPktsIn") == 0) {
+ has_AckPktsIn = 1;
*AckPktsIn = atoi(web_vars[i].value);
+ }
else if (strcmp(web_vars[i].name, "MaxRwinRcvd") == 0)
*MaxRwinRcvd = atoi(web_vars[i].value);
else if (strcmp(web_vars[i].name, "X_Sndbuf") == 0)
@@ -728,6 +737,10 @@
else if (strcmp(web_vars[i].name, "ThruBytesAcked") == 0)
*ThruBytesAcked = atoi(web_vars[i].value);
}
+
+ if (!has_AckPktsIn) {
+ *AckPktsIn = PktsIn - DataPktsIn;
+ }

return (0);
}


  • [ndt-dev] [ndt] r831 committed - Calculate AckPktsIn if it's not available, ndt, 09/13/2013

Archive powered by MHonArc 2.6.16.

Top of Page