summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/icmp
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-09-23 13:09:00 -0700
committergVisor bot <gvisor-bot@google.com>2021-09-23 13:12:32 -0700
commit1df5ad1c7ac075b4f81021c00e8d68b1e94448d3 (patch)
treefdce29df01787dbdfd89ad3d3327a159115d98e8 /pkg/tcpip/transport/icmp
parent2e4f26ac5ed206e981f662326e19d60b5f05bd4c (diff)
Implement S/R for TransportEndpointStats
PiperOrigin-RevId: 398559780
Diffstat (limited to 'pkg/tcpip/transport/icmp')
-rw-r--r--pkg/tcpip/transport/icmp/endpoint.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/tcpip/transport/icmp/endpoint.go b/pkg/tcpip/transport/icmp/endpoint.go
index b3436e44c..bb0db9f70 100644
--- a/pkg/tcpip/transport/icmp/endpoint.go
+++ b/pkg/tcpip/transport/icmp/endpoint.go
@@ -54,9 +54,8 @@ type endpoint struct {
waiterQueue *waiter.Queue
uniqueID uint64
net network.Endpoint
- // TODO(b/142022063): Add ability to save and restore per endpoint stats.
- stats tcpip.TransportEndpointStats `state:"nosave"`
- ops tcpip.SocketOptions
+ stats tcpip.TransportEndpointStats
+ ops tcpip.SocketOptions
// The following fields are used to manage the receive queue, and are
// protected by rcvMu.