diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-10-21 18:41:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-10-21 18:44:01 +0200 |
commit | 5d37bd24e14e3fff6c1ce61e299480beb3d68c00 (patch) | |
tree | 8daafeec3f91a4842ae7aa8fdba49f75c5db4d08 /conn/bind_std.go | |
parent | 24ea13351eb7a06c3760f2eae18a484ce009fcf9 (diff) |
conn: separate gso and sticky control
Android wants GSO but not sticky.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conn/bind_std.go')
-rw-r--r-- | conn/bind_std.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conn/bind_std.go b/conn/bind_std.go index 5a00f34..e1bcbd1 100644 --- a/conn/bind_std.go +++ b/conn/bind_std.go @@ -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 }, |