openbsd-ports/net/snort/patches/patch-src_log_c

40 lines
1.5 KiB
Plaintext

$OpenBSD: patch-src_log_c,v 1.3 2010/07/12 19:38:40 sthen Exp $
--- src/log.c.orig Tue Jan 26 19:10:51 2010
+++ src/log.c Thu Apr 22 07:53:46 2010
@@ -407,7 +407,7 @@ void PrintIPPkt(FILE * fp, int type, Packet * p)
DEBUG_WRAP(DebugMessage(DEBUG_LOG, "PrintIPPkt type = %d\n", type););
bzero((char *) timestamp, TIMEBUF_SIZE);
- ts_print((struct timeval *) & p->pkth->ts, timestamp);
+ ts_print((struct sf_timeval32 *) & p->pkth->ts, timestamp);
/* dump the timestamp */
fwrite(timestamp, strlen(timestamp), 1, fp);
@@ -918,7 +918,7 @@ void PrintArpHeader(FILE * fp, Packet * p)
bzero((struct in_addr *) &ip_addr, sizeof(struct in_addr));
bzero((char *) timestamp, TIMEBUF_SIZE);
- ts_print((struct timeval *) & p->pkth->ts, timestamp);
+ ts_print((struct sf_timeval32 *) & p->pkth->ts, timestamp);
/* determine what to use as MAC src and dst */
if (p->eh != NULL)
@@ -1959,7 +1959,7 @@ void PrintEapolPkt(FILE * fp, Packet * p)
bzero((char *) timestamp, TIMEBUF_SIZE);
- ts_print((struct timeval *) & p->pkth->ts, timestamp);
+ ts_print((struct sf_timeval32 *) & p->pkth->ts, timestamp);
/* dump the timestamp */
fwrite(timestamp, strlen(timestamp), 1, fp);
@@ -2133,7 +2133,7 @@ void PrintWifiPkt(FILE * fp, Packet * p)
bzero((char *) timestamp, TIMEBUF_SIZE);
- ts_print((struct timeval *) & p->pkth->ts, timestamp);
+ ts_print((struct sf_timeval32 *) & p->pkth->ts, timestamp);
/* dump the timestamp */
fwrite(timestamp, strlen(timestamp), 1, fp);