From b28bd31bb6d920c23b5036d94bc7123143369e24 Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Thu, 16 Sep 2021 20:04:00 -0700 Subject: Allow creating packet socket bound to any protocol ...even protocols the stack is unaware of. While I am here, annotate checklocks on stack.packetEndpointList. PiperOrigin-RevId: 397226754 --- test/syscalls/linux/BUILD | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/syscalls/linux/BUILD') diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index 1fcf78ddf..85fa58970 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -7,6 +7,7 @@ package( exports_files( [ + "packet_socket.cc", "packet_socket_dgram.cc", "packet_socket_raw.cc", "raw_socket.cc", @@ -1480,6 +1481,20 @@ cc_binary( ], ) +cc_binary( + name = "packet_socket_test", + testonly = 1, + srcs = ["packet_socket.cc"], + linkstatic = 1, + deps = [ + "//test/util:capability_util", + "//test/util:file_descriptor", + "//test/util:socket_util", + gtest, + "//test/util:test_main", + ], +) + cc_binary( name = "pty_test", testonly = 1, -- cgit v1.2.3