]> sjero.net Git - iperf/blobdiff - src/Reporter.c
TCP Congestion Control Module via options
[iperf] / src / Reporter.c
index c5eff5c35ba5a48e3610073272ea588db7a9a7dd..f3bd21930e933b5c639af47c475e89a9f5e61559 100644 (file)
@@ -223,6 +223,7 @@ ReportHeader* InitReport( thread_Settings *agent ) {
             data->info.transferID = agent->mSock;
             data->info.groupID = (agent->multihdr != NULL ? agent->multihdr->groupID 
                                                           : -1);
+            data->info.congAlgo = agent->congAlgo;
             data->type = TRANSFER_REPORT;
             if ( agent->mInterval != 0.0 ) {
                 struct timeval *interval = &data->intervalTime;
@@ -260,6 +261,7 @@ ReportHeader* InitReport( thread_Settings *agent ) {
                 data = &reporthdr->report;
                 data->info.transferID = agent->mSock;
                 data->info.groupID = -1;
+                data->info.congAlgo = agent->congAlgo;
             } else {
                 FAIL(1, "Out of Memory!!\n", agent);
             }
@@ -445,6 +447,7 @@ void ReportSettings( thread_Settings *agent ) {
             data->mMcastIface = agent->mMcastIface;
             data->info.mFormat = agent->mFormat;
             data->info.mTTL = agent->mTTL;
+            data->info.congAlgo = agent->congAlgo;
             data->connection.peer = agent->peer;
             data->connection.local = agent->local;