Menu ▾ ▴

#243 Output & verify TCP_CONGESTION

1.0
accepted
None
2023-03-15
2023-03-15
No

Use getsockopt on TCP CCA so user knows what's being used

    if (isCongestionControl(inSettings)) {
#ifdef TCP_CONGESTION
    Socklen_t len = strlen(inSettings->mCongestion) + 1;
    int rc = setsockopt(inSettings->mSock, IPPROTO_TCP, TCP_CONGESTION,
                 inSettings->mCongestion, len);
    if (rc == SOCKET_ERROR) {
        fprintf(stderr, "Attempt to set '%s' congestion control failed: %s\n",
            inSettings->mCongestion, strerror(errno));
        unsetCongestionControl(inSettings);
    }
#else
    fprintf(stderr, "The -Z option is not available on this operating system\n");
#endif
    }

Discussion

  • Robert McMahon

    Robert McMahon - 2023-03-15
    • summary: Output & verify TCP_CONGESTRIO --> Output & verify TCP_CONGESTION
     
  • Robert McMahon

    Robert McMahon - 2023-03-15

    Code commit is here. Master only.

     

Log in to post a comment.