Remove unimplemented message for SO_LINGER

- Removes the unimplemented message for SO_LINGER
- Fix the length for IP_PKTINFO option

PiperOrigin-RevId: 352917611
This commit is contained in:
Nayana Bidari
2021-01-20 18:16:51 -08:00
committed by gVisor bot
parent a50bc8446c
commit b0136253e6
2 changed files with 1 additions and 7 deletions
-4
View File
@@ -1814,10 +1814,6 @@ func setSockOptSocket(t *kernel.Task, s socket.SocketOps, ep commonEndpoint, nam
var v linux.Linger
binary.Unmarshal(optVal[:linux.SizeOfLinger], usermem.ByteOrder, &v)
if v != (linux.Linger{}) {
socket.SetSockOptEmitUnimplementedEvent(t, name)
}
ep.SocketOptions().SetLinger(tcpip.LingerOption{
Enabled: v.OnOff != 0,
Timeout: time.Second * time.Duration(v.Linger),