From 935978ee57da95bcfcc6aadaaf248a7176083897 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 24 Nov 2018 20:21:19 +0100 Subject: [PATCH] [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 8d0f4282604..5ca137bf89a 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 313e9d1ee66..c637150158b 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 */