summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/syscalls/linux/raw_socket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/syscalls/linux/raw_socket.cc b/test/syscalls/linux/raw_socket.cc
index f0eb7cc4a..ef1db47ee 100644
--- a/test/syscalls/linux/raw_socket.cc
+++ b/test/syscalls/linux/raw_socket.cc
@@ -950,7 +950,7 @@ void TestRawSocketMaybeBindReceive(bool do_bind) {
};
FileDescriptor udp_sock =
- ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET, SOCK_DGRAM, SOL_UDP));
+ ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET, SOCK_DGRAM, 0));
sockaddr_in udp_sock_bind_addr = addr;
socklen_t udp_sock_bind_addr_len = sizeof(udp_sock_bind_addr);
ASSERT_THAT(bind(udp_sock.get(),
@@ -964,7 +964,7 @@ void TestRawSocketMaybeBindReceive(bool do_bind) {
ASSERT_EQ(udp_sock_bind_addr_len, sizeof(udp_sock_bind_addr));
FileDescriptor raw_sock =
- ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET, SOCK_RAW, SOL_UDP));
+ ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET, SOCK_RAW, IPPROTO_UDP));
auto test_recv = [&](const char* scope, uint32_t expected_destination) {
SCOPED_TRACE(scope);