Home
last modified time | relevance | path

Searched refs:TcpTableOwnerMod (Results 1 – 3 of 3) sorted by relevance

/reactos/modules/rostests/apitests/iphlpapi/
H A DGetExtendedTcpTable.c48 PMIB_TCPTABLE_OWNER_MODULE TcpTableOwnerMod; in START_TEST() local
256 for (i = 0; i < TcpTableOwnerMod->dwNumEntries; ++i) in START_TEST()
259 TcpTableOwnerMod->table[i].dwLocalAddr == 0 && in START_TEST()
261 TcpTableOwnerMod->table[i].dwRemoteAddr == 0) in START_TEST()
280 HeapFree(GetProcessHeap(), 0, TcpTableOwnerMod); in START_TEST()
290 for (i = 0; i < TcpTableOwnerMod->dwNumEntries; ++i) in START_TEST()
295 TcpTableOwnerMod->table[i].dwRemoteAddr == 0) in START_TEST()
303 HeapFree(GetProcessHeap(), 0, TcpTableOwnerMod); in START_TEST()
315 for (i = 0; i < TcpTableOwnerMod->dwNumEntries; ++i) in START_TEST()
320 TcpTableOwnerMod->table[i].dwRemoteAddr == 0) in START_TEST()
[all …]
H A DGetOwnerModuleFromTcpEntry.c46 PMIB_TCPTABLE_OWNER_MODULE TcpTableOwnerMod; in START_TEST() local
87 …if (GetExtendedTcpTableWithAlloc((PVOID *)&TcpTableOwnerMod, TRUE, AF_INET, TCP_TABLE_OWNER_MODULE… in START_TEST()
89 ok(TcpTableOwnerMod->dwNumEntries > 0, "No TCP connections?!\n"); in START_TEST()
92 for (i = 0; i < TcpTableOwnerMod->dwNumEntries; ++i) in START_TEST()
94 if (TcpTableOwnerMod->table[i].dwState == MIB_TCP_STATE_LISTEN && in START_TEST()
95 TcpTableOwnerMod->table[i].dwLocalAddr == 0 && in START_TEST()
96 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in START_TEST()
97 TcpTableOwnerMod->table[i].dwRemoteAddr == 0) in START_TEST()
113 ok(TcpTableOwnerMod->table[i].dwOwningPid == Pid, "Invalid owner\n"); in START_TEST()
115 …ok(TcpTableOwnerMod->table[i].liCreateTimestamp.QuadPart >= CreationTime.QuadPart, "Invalid time\n… in START_TEST()
[all …]
/reactos/modules/rostests/apitests/advapi32/
H A DServiceNetwork.c129 PMIB_TCPTABLE_OWNER_MODULE TcpTableOwnerMod; in test_tcp() local
148 …ret = GetExtendedTcpTableWithAlloc((PVOID *)&TcpTableOwnerMod, TRUE, AF_INET, TCP_TABLE_OWNER_MODU… in test_tcp()
152 service_ok(TcpTableOwnerMod->dwNumEntries > 0, "No TCP connections?!\n"); in test_tcp()
155 for (i = 0; i < TcpTableOwnerMod->dwNumEntries; ++i) in test_tcp()
157 if (TcpTableOwnerMod->table[i].dwState == MIB_TCP_STATE_LISTEN && in test_tcp()
158 TcpTableOwnerMod->table[i].dwLocalAddr == 0 && in test_tcp()
159 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in test_tcp()
160 TcpTableOwnerMod->table[i].dwRemoteAddr == 0) in test_tcp()
173 service_ok(TcpTableOwnerMod->table[i].dwOwningPid == Pid, "Invalid owner\n"); in test_tcp()
174 …service_ok((DWORD)(TcpTableOwnerMod->table[i].OwningModuleInfo[0]) == service_tag, "Invalid tag: %… in test_tcp()
[all …]