diff --git a/net-mgmt/p0f/files/patch-process.c b/net-mgmt/p0f/files/patch-process.c index fea6321a09b9..45e2e41e749b 100644 --- a/net-mgmt/p0f/files/patch-process.c +++ b/net-mgmt/p0f/files/patch-process.c @@ -1,21 +1,29 @@ ---- process.c.orig 2012-01-16 22:43:57.000000000 -0500 -+++ process.c 2012-03-18 16:01:24.966689978 -0400 -@@ -22,6 +22,9 @@ +--- process.c.orig 2016-04-16 01:18:17 UTC ++++ process.c +@@ -8,6 +8,7 @@ + + */ + ++#include + #include + #include + #include +@@ -22,6 +23,9 @@ #include #include #include +#include +#include +#include #include "types.h" #include "config.h" -@@ -106,7 +109,7 @@ +@@ -106,7 +110,7 @@ static void find_offset(const u8* data, s32 total_len) case DLT_LINUX_SLL: link_off = 16; return; #endif /* DLT_LINUX_SLL */ - case DLT_PFLOG: link_off = 28; return; + case DLT_PFLOG: link_off = PFLOG_HDRLEN; return; case DLT_IEEE802_11: link_off = 32; return; }