diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2020-11-24 11:48:09 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-24 11:50:00 -0800 |
commit | 732e98985546958fdab8ae3d49e36f17ae89f71c (patch) | |
tree | 16efeda1f25304990fad6676fa50a509d0b9f84a /pkg/tcpip/network/ip/BUILD | |
parent | e5fd23c18d1fd602603babd8297dabf679c336aa (diff) |
Extract IGMPv2 core state machine
The IGMPv2 core state machine can be shared with MLDv1 since they are
almost identical, ignoring specific addresses, constants and packets.
Bug #4682, #4861
PiperOrigin-RevId: 344102615
Diffstat (limited to 'pkg/tcpip/network/ip/BUILD')
-rw-r--r-- | pkg/tcpip/network/ip/BUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/tcpip/network/ip/BUILD b/pkg/tcpip/network/ip/BUILD new file mode 100644 index 000000000..6ca200b48 --- /dev/null +++ b/pkg/tcpip/network/ip/BUILD @@ -0,0 +1,25 @@ +load("//tools:defs.bzl", "go_library", "go_test") + +package(licenses = ["notice"]) + +go_library( + name = "ip", + srcs = ["generic_multicast_protocol.go"], + visibility = ["//visibility:public"], + deps = [ + "//pkg/sync", + "//pkg/tcpip", + ], +) + +go_test( + name = "ip_test", + size = "small", + srcs = ["generic_multicast_protocol_test.go"], + deps = [ + ":ip", + "//pkg/tcpip", + "//pkg/tcpip/faketime", + "@com_github_google_go_cmp//cmp:go_default_library", + ], +) |