[TCPIP] Save the date when an ADDRESS_FILE is created
authorPierre Schweitzer <pierre@reactos.org>
Tue, 27 Nov 2018 07:35:49 +0000 (08:35 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 27 Nov 2018 20:36:47 +0000 (21:36 +0100)
drivers/network/tcpip/include/titypes.h
drivers/network/tcpip/tcpip/fileobjs.c

index 5ca137b..e63fad2 100644 (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 */
     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 */
 
 
     /* The following members are used to control event notification */
 
index c637150..30a3939 100644 (file)
@@ -425,6 +425,7 @@ NTSTATUS FileOpenAddress(
   AddrFile->BCast = 1;
   AddrFile->HeaderIncl = 1;
   AddrFile->ProcessId = PsGetCurrentProcessId();
   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 */
 
   /* Make sure address is a local unicast address or 0 */
   /* FIXME: IPv4 only */