summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/transport_demuxer.go
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2021-08-18 16:56:40 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-18 17:00:13 -0700
commita4ae5fed32c09d5c09b4d540b9d5faa8fcd5dda1 (patch)
tree7ee6df9f11f9dbe83f3ece24f4a94c8de5e8d07c /pkg/tcpip/stack/transport_demuxer.go
parent75b5a4f455c2e81bb38dcf786c788089ad1aebf7 (diff)
Split TCP secrets from Stack to tcp.protocol
Use different secrets for different purposes (port picking, ISN generation, tsOffset generation) and moved the secrets from stack.Stack to tcp.protocol. PiperOrigin-RevId: 391641238
Diffstat (limited to 'pkg/tcpip/stack/transport_demuxer.go')
-rw-r--r--pkg/tcpip/stack/transport_demuxer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/transport_demuxer.go b/pkg/tcpip/stack/transport_demuxer.go
index dda57e225..824cf6526 100644
--- a/pkg/tcpip/stack/transport_demuxer.go
+++ b/pkg/tcpip/stack/transport_demuxer.go
@@ -479,7 +479,7 @@ func (d *transportDemuxer) singleRegisterEndpoint(netProto tcpip.NetworkProtocol
if !ok {
epsByNIC = &endpointsByNIC{
endpoints: make(map[tcpip.NICID]*multiPortEndpoint),
- seed: d.stack.Seed(),
+ seed: d.stack.seed,
}
}
if err := epsByNIC.registerEndpoint(d, netProto, protocol, ep, flags, bindToDevice); err != nil {