From 302883186785938651184c53912535c3e690cb33 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Tue, 27 Nov 2018 08:35:49 +0100 Subject: [PATCH] [TCPIP] Save the date when an ADDRESS_FILE is created --- 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 5ca137bf89a..e63fad28214 100644 --- a/drivers/network/tcpip/include/titypes.h +++ b/drivers/network/tcpip/include/titypes.h @@ -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 */ diff --git a/drivers/network/tcpip/tcpip/fileobjs.c b/drivers/network/tcpip/tcpip/fileobjs.c index c637150158b..30a3939e2b0 100644 --- a/drivers/network/tcpip/tcpip/fileobjs.c +++ b/drivers/network/tcpip/tcpip/fileobjs.c @@ -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 */ -- 2.17.1