[TCPIP] Store creator PID in ADDRESS_FILE

This commit is contained in:
Pierre Schweitzer 2018-11-24 20:21:19 +01:00
parent 702d44c683
commit 935978ee57
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 2 additions and 0 deletions

View file

@ -154,6 +154,7 @@ typedef struct _ADDRESS_FILE {
/* Associated listener (see transport/tcp/accept.c) */ /* Associated listener (see transport/tcp/accept.c) */
IP_ADDRESS AddrCache; /* One entry address cache (destination IP_ADDRESS AddrCache; /* One entry address cache (destination
address of last packet transmitted) */ address of last packet transmitted) */
HANDLE ProcessId; /* Creator process ID */
/* The following members are used to control event notification */ /* The following members are used to control event notification */

View file

@ -424,6 +424,7 @@ NTSTATUS FileOpenAddress(
AddrFile->DF = 0; AddrFile->DF = 0;
AddrFile->BCast = 1; AddrFile->BCast = 1;
AddrFile->HeaderIncl = 1; AddrFile->HeaderIncl = 1;
AddrFile->ProcessId = PsGetCurrentProcessId();
/* Make sure address is a local unicast address or 0 */ /* Make sure address is a local unicast address or 0 */
/* FIXME: IPv4 only */ /* FIXME: IPv4 only */