--- pfflowd.c.orig Tue Sep 7 00:25:57 2004 +++ pfflowd.c Wed Nov 10 13:46:53 2004 @@ -40,7 +40,11 @@ #include #include #include +#if defined(__FreeBSD__) +#include "pidfile.h" +#else #include +#endif #include #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);