[TCPIP] Save the date when an ADDRESS_FILE is created

This commit is contained in:
Pierre Schweitzer 2018-11-27 08:35:49 +01:00
parent 655e66bdbd
commit 3028831867
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 2 additions and 0 deletions

View file

@ -155,6 +155,7 @@ typedef struct _ADDRESS_FILE {
IP_ADDRESS AddrCache; /* One entry address cache (destination
address of last packet transmitted) */
HANDLE ProcessId; /* Creator process ID */
LARGE_INTEGER CreationTime; /* Time of creation */
/* The following members are used to control event notification */

View file

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