[TCPIP] Store creator PID in ADDRESS_FILE
authorPierre Schweitzer <pierre@reactos.org>
Sat, 24 Nov 2018 19:21:19 +0000 (20:21 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 24 Nov 2018 20:41:09 +0000 (21:41 +0100)
drivers/network/tcpip/include/titypes.h
drivers/network/tcpip/tcpip/fileobjs.c

index 8d0f428..5ca137b 100644 (file)
@@ -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 */
 
index 313e9d1..c637150 100644 (file)
@@ -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 */