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:
parent
24ea13351e
commit
5d37bd24e1
6 changed files with 96 additions and 66 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue