diff options
author | Kevin Krakauer <krakauer@google.com> | 2020-07-13 11:59:26 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-13 12:00:46 -0700 |
commit | 43c209f48e0aa9024705583cc6f0fafa7d6380ca (patch) | |
tree | 86d22b7950dfcefb07b4b4bc0bb8af7367bc655c /pkg/tcpip/stack/BUILD | |
parent | 76b392bc262d5c0af10b3127b7aad85a4130da78 (diff) |
garbage collect connections
As in Linux, we must periodically clean up unused connections.
PiperOrigin-RevId: 321003353
Diffstat (limited to 'pkg/tcpip/stack/BUILD')
-rw-r--r-- | pkg/tcpip/stack/BUILD | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/BUILD b/pkg/tcpip/stack/BUILD index e65c731c2..800bf3f08 100644 --- a/pkg/tcpip/stack/BUILD +++ b/pkg/tcpip/stack/BUILD @@ -27,6 +27,18 @@ go_template_instance( }, ) +go_template_instance( + name = "tuple_list", + out = "tuple_list.go", + package = "stack", + prefix = "tuple", + template = "//pkg/ilist:generic_list", + types = { + "Element": "*tuple", + "Linker": "*tuple", + }, +) + go_library( name = "stack", srcs = [ @@ -35,6 +47,7 @@ go_library( "forwarder.go", "icmp_rate_limit.go", "iptables.go", + "iptables_state.go", "iptables_targets.go", "iptables_types.go", "linkaddrcache.go", @@ -50,6 +63,7 @@ go_library( "stack_global_state.go", "stack_options.go", "transport_demuxer.go", + "tuple_list.go", ], visibility = ["//visibility:public"], deps = [ |