conn: separate gso and sticky control

Android wants GSO but not sticky.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2023-10-21 18:41:27 +02:00
parent 24ea13351e
commit 5d37bd24e1
6 changed files with 96 additions and 66 deletions

View File

@@ -65,7 +65,7 @@ func NewStdNetBind() Bind {
msgs := make([]ipv6.Message, IdealBatchSize)
for i := range msgs {
msgs[i].Buffers = make(net.Buffers, 1)
msgs[i].OOB = make([]byte, controlSize)
msgs[i].OOB = make([]byte, stickyControlSize+gsoControlSize)
}
return &msgs
},