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 ) ...@@ -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++); do { if (*str == ch) ret = (char *)(ULONG_PTR)str; } while (*str++);
return ret; return ret;
} }
#define SERVER_LISTEN_PORT 9374
...@@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void) ...@@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void)
memset(&addr, 0, sizeof(addr)); memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET; addr.sin_family = AF_INET;
addr.sin_port = htons(12345); addr.sin_port = htons(SERVER_LISTEN_PORT);
IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL); IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL);
IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE); IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE);
......
...@@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter) ...@@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter)
memset(&addr, 0, sizeof(addr)); memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET; addr.sin_family = AF_INET;
addr.sin_port = htons(12345); addr.sin_port = htons(SERVER_LISTEN_PORT);
addr.sin_addr.s_addr = htonl(0x7f000001); addr.sin_addr.s_addr = htonl(0x7f000001);
ret = connect(s, (struct sockaddr *)&addr, sizeof(addr)); 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