Remove TODOs for supporting TCP_INFO option.

TCP_INFO option is supported in gVisor, but does not return all the fields
in struct TCP_INFO. The fields which were required for debugging are added.
The support for other fields in the struct can be added when required.

PiperOrigin-RevId: 632621246
This commit is contained in:
Nayana Bidari
2024-05-10 15:40:45 -07:00
committed by gVisor bot
parent 6fae8b623f
commit eb0505cdf1
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -1201,8 +1201,6 @@ func getSockOptTCP(t *kernel.Task, s socket.Socket, ep commonEndpoint, name, out
return nil, syserr.TranslateNetstackError(err)
}
// TODO(b/64800844): Translate fields once they are added to
// tcpip.TCPInfoOption.
info := linux.TCPInfo{
State: uint8(v.State),
RTO: uint32(v.RTO / time.Microsecond),
-2
View File
@@ -1190,8 +1190,6 @@ const (
)
// TCPInfoOption is used by GetSockOpt to expose TCP statistics.
//
// TODO(b/64800844): Add and populate stat fields.
type TCPInfoOption struct {
// RTT is the smoothed round trip time.
RTT time.Duration