Add Loopback and Timestamp fields to addresses.

- Loopback=1 for loopback packets, 0 otherwise.
- Timestamp is the time when packet captured.
This commit is contained in:
basil00
2017-11-05 12:12:19 +08:00
parent 60c3a26e1c
commit bbf6a34aa6
8 changed files with 100 additions and 52 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
/*
* webfilter.c
* (C) 2016, all rights reserved,
* (C) 2017, all rights reserved,
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -160,6 +160,7 @@ int __cdecl main(int argc, char **argv)
// Open the Divert device:
handle = WinDivertOpen(
"outbound && " // Outbound traffic only
"!loopback && " // No loopback traffic
"ip && " // Only IPv4 supported
"tcp.DstPort == 80 && " // HTTP (port 80) only
"tcp.PayloadLength > 0", // TCP data packets only