Commit 5ead4e1e authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntoskrnl/tests: Use the same sin port as ws2_32 tests.

parent b7ccb9d0
......@@ -55,3 +55,5 @@ static inline char *drv_strrchr( const char *str, char ch )
do { if (*str == ch) ret = (char *)(ULONG_PTR)str; } while (*str++);
return ret;
}
#define SERVER_LISTEN_PORT 9374
......@@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void)
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(12345);
addr.sin_port = htons(SERVER_LISTEN_PORT);
IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL);
IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE);
......
......@@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter)
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(12345);
addr.sin_port = htons(SERVER_LISTEN_PORT);
addr.sin_addr.s_addr = htonl(0x7f000001);
ret = connect(s, (struct sockaddr *)&addr, sizeof(addr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment