openbsd-ports/net/snort/patches/patch-src_event_h
pvalchev 1fcfc6b7b2 Differentiate between struct timeval and bpf_timeval.. fixes
logging/alerting on 64-bit platforms.
From nikns@secure.lv
2006-11-25 05:33:28 +00:00

22 lines
850 B
Plaintext

$OpenBSD: patch-src_event_h,v 1.1 2006/11/25 05:33:28 pvalchev Exp $
--- src/event.h.orig Tue Aug 23 18:52:22 2005
+++ src/event.h Tue Nov 7 20:28:12 2006
@@ -34,6 +34,8 @@
#include <sys/time.h>
#endif
+#include "snort_packet_header.h"
+
typedef struct _Event
{
u_int32_t sig_generator; /* which part of snort generated the alert? */
@@ -45,7 +47,7 @@ typedef struct _Event
u_int32_t event_reference; /* reference to other events that have gone off,
* such as in the case of tagged packets...
*/
- struct timeval ref_time; /* reference time for the event reference */
+ struct pcap_timeval ref_time; /* reference time for the event reference */
/* Don't add to this structure because this is the serialized data
* struct for unified logging.