Page MenuHomeFreeBSD

Several small TCP related fixes for getsockopt()
ClosedPublic

Authored by tuexen on Sep 8 2016, 3:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 18 2024, 11:49 AM
Unknown Object (File)
Feb 18 2024, 11:43 AM
Unknown Object (File)
Feb 18 2024, 5:38 AM
Unknown Object (File)
Dec 20 2023, 5:52 AM
Unknown Object (File)
Dec 3 2023, 5:49 PM
Unknown Object (File)
Oct 10 2023, 12:50 PM
Unknown Object (File)
Oct 4 2023, 4:44 AM
Unknown Object (File)
Jun 27 2023, 7:10 AM
Subscribers

Details

Reviewers
hiren
rrs
jtl
Group Reviewers
transport
Summary

When using getsockopt(..., IPPROTO_TCP, TCP_INFO, ..., ...) the flag TCPI_OPT_ECN in tcpi_options is not set when ECN support has been successfully negotiated. This patch fixes this.

When using getsockopt(..., IPPROTO_TCP, TCP_KEEPINIT, ..., ...) a value of 0 is reported when the default value inherited from the sysctl variable net.inet.tcp.keepinit is used. This patch ensure that always the value used is reported.

When using getsockopt(..., IPPROTO_TCP, TCP_KEEPINTVL, ..., ...) a value of 0 is reported when the default value inherited from the sysctl variable net.inet.tcp.keepintvl is used. This patch ensure that always the value used is reported.

When using getsockopt(..., IPPROTO_TCP, TCP_KEEPIDLE, ..., ...) a value of 0 is reported when the default value inherited from the sysctl variable net.inet.tcp.keepidle is used. This patch ensure that always the value used is reported.

When using getsockopt(..., IPPROTO_TCP, TCP_KEEPCNT, ..., ...) a value of 0 is reported when the default value inherited from the sysctl variable net.inet.tcp.keepcnt is used. This patch ensure that always the value used is reported.

Test Plan

Using packetdrill test scripts to ensure that always the value actually used is reported. No matter if it is the default value or a value set by the user via a corresponding setsockopt() operation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 5111
Build 5203: CI src buildJenkins

Event Timeline

tuexen retitled this revision from to Several small TCP related fixes for getsockopt().
tuexen updated this object.
tuexen edited the test plan for this revision. (Show Details)
tuexen added reviewers: transport, rrs.
tuexen set the repository for this revision to rS FreeBSD src repository - subversion.
rrs edited edge metadata.
This revision is now accepted and ready to land.Sep 8 2016, 5:31 PM
jtl added a reviewer: jtl.
hiren added a reviewer: hiren.
hiren added a subscriber: hiren.

Thanks for the cleanup.