Skip to content

Commit 0335cf7

Browse files
nybidarigvisor-bot
authored andcommitted
Remove TODOs for fields which are restored in netstack.
insecureRNG and secureRNG stack fields are restored in stack.afterLoad() tcp processor fields are restored in tcp endpoint.Restore() PiperOrigin-RevId: 704477536
1 parent 68f11a0 commit 0335cf7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pkg/tcpip/stack/stack.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,9 @@ type Stack struct {
145145
// randomGenerator is an injectable pseudo random generator that can be
146146
// used when a random number is required. It must not be used in
147147
// security-sensitive contexts.
148-
// TODO(b/341946753): Restore them when netstack is savable.
149148
insecureRNG *rand.Rand `state:"nosave"`
150149

151150
// secureRNG is a cryptographically secure random number generator.
152-
// TODO(b/341946753): Restore them when netstack is savable.
153151
secureRNG cryptorand.RNG `state:"nosave"`
154152

155153
// sendBufferSize holds the min/default/max send buffer sizes for

pkg/tcpip/transport/tcp/dispatcher.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ func (q *epQueue) empty() bool {
7878
//
7979
// +stateify savable
8080
type processor struct {
81-
epQ epQueue
82-
sleeper sleep.Sleeper `state:"nosave"`
83-
// TODO(b/341946753): Restore them when netstack is savable.
81+
epQ epQueue
82+
sleeper sleep.Sleeper `state:"nosave"`
8483
newEndpointWaker sleep.Waker `state:"nosave"`
8584
closeWaker sleep.Waker `state:"nosave"`
8685
pauseWaker sleep.Waker `state:"nosave"`

0 commit comments

Comments
 (0)