diff options
author | Bruno Dal Bo <brunodalbo@google.com> | 2020-06-22 10:30:21 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-22 10:31:45 -0700 |
commit | 282a6aea1b375d447fdf502c6660e92eb5e19cd4 (patch) | |
tree | 3c90df2c74369144427c289b3e3b320956e7b52d /pkg/tcpip/link/sniffer/BUILD | |
parent | a480b4faf4befb029bf905fdb604996c8312a6a2 (diff) |
Extract common nested LinkEndpoint pattern
... and unify logic for detached netsted endpoints.
sniffer.go caused crashes if a packet delivery is attempted when the dispatcher
is nil.
Extracted the endpoint nesting logic into a common composable type so it can be
used by the Fuchsia Netstack (the pattern is widespread there).
PiperOrigin-RevId: 317682842
Diffstat (limited to 'pkg/tcpip/link/sniffer/BUILD')
-rw-r--r-- | pkg/tcpip/link/sniffer/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/link/sniffer/BUILD b/pkg/tcpip/link/sniffer/BUILD index 230a8d53a..7cbc305e7 100644 --- a/pkg/tcpip/link/sniffer/BUILD +++ b/pkg/tcpip/link/sniffer/BUILD @@ -14,6 +14,7 @@ go_library( "//pkg/tcpip", "//pkg/tcpip/buffer", "//pkg/tcpip/header", + "//pkg/tcpip/link/nested", "//pkg/tcpip/stack", ], ) |