https://git.reactos.org/?p=reactos.git;a=commitdiff;h=935978ee57da95bcfcc6a…
commit 935978ee57da95bcfcc6aadaaf248a7176083897
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Nov 24 20:21:19 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Nov 24 21:41:09 2018 +0100
[TCPIP] Store creator PID in ADDRESS_FILE
---
drivers/network/tcpip/include/titypes.h | 1 +
drivers/network/tcpip/tcpip/fileobjs.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/network/tcpip/include/titypes.h
b/drivers/network/tcpip/include/titypes.h
index 8d0f428260..5ca137bf89 100644
--- a/drivers/network/tcpip/include/titypes.h
+++ b/drivers/network/tcpip/include/titypes.h
@@ -154,6 +154,7 @@ typedef struct _ADDRESS_FILE {
/* Associated listener (see transport/tcp/accept.c) */
IP_ADDRESS AddrCache; /* One entry address cache (destination
address of last packet transmitted) */
+ HANDLE ProcessId; /* Creator process ID */
/* The following members are used to control event notification */
diff --git a/drivers/network/tcpip/tcpip/fileobjs.c
b/drivers/network/tcpip/tcpip/fileobjs.c
index 313e9d1ee6..c637150158 100644
--- a/drivers/network/tcpip/tcpip/fileobjs.c
+++ b/drivers/network/tcpip/tcpip/fileobjs.c
@@ -424,6 +424,7 @@ NTSTATUS FileOpenAddress(
AddrFile->DF = 0;
AddrFile->BCast = 1;
AddrFile->HeaderIncl = 1;
+ AddrFile->ProcessId = PsGetCurrentProcessId();
/* Make sure address is a local unicast address or 0 */
/* FIXME: IPv4 only */