mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
5ce6698fd4
PR: 73752 Submitted by: Andrew Thompson <andy@fud.org.nz>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
--- pfflowd.c.orig Tue Sep 7 00:25:57 2004
|
|
+++ pfflowd.c Wed Nov 10 13:46:53 2004
|
|
@@ -40,7 +40,11 @@
|
|
#include <syslog.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
+#if defined(__FreeBSD__)
|
|
+#include "pidfile.h"
|
|
+#else
|
|
#include <util.h>
|
|
+#endif
|
|
#include <netdb.h>
|
|
#include "pfflowd.h"
|
|
|
|
@@ -115,9 +119,7 @@
|
|
/* Signal handlers */
|
|
static void sighand_exit(int signum)
|
|
{
|
|
- struct syslog_data sd = SYSLOG_DATA_INIT;
|
|
-
|
|
- syslog_r(LOG_INFO, &sd, "%s exiting on signal %d", PROGNAME, signum);
|
|
+ syslog(LOG_INFO, "%s exiting on signal %d", PROGNAME, signum);
|
|
|
|
_exit(0);
|
|
}
|
|
@@ -366,7 +368,9 @@
|
|
strlcat(dst_s, pbuf, sizeof(dst_s));
|
|
}
|
|
|
|
+#ifndef OLD_PFSYNC
|
|
syslog(LOG_DEBUG, "IFACE %s", st[i].ifname);
|
|
+#endif
|
|
syslog(LOG_DEBUG, "GWY %s", rt_s);
|
|
syslog(LOG_DEBUG, "FLOW proto %d direction %d",
|
|
st[i].proto, st[i].direction);
|
|
@@ -538,7 +542,9 @@
|
|
strlcat(dst_s, pbuf, sizeof(dst_s));
|
|
}
|
|
|
|
+#ifndef OLD_PFSYNC
|
|
syslog(LOG_DEBUG, "IFACE %s", st[i].ifname);
|
|
+#endif
|
|
syslog(LOG_DEBUG, "GWY %s", rt_s);
|
|
syslog(LOG_DEBUG, "FLOW proto %d direction %d",
|
|
st[i].proto, st[i].direction);
|