summaryrefslogtreecommitdiff
path: root/net/pfflowd/files/patch-pfflowd.c
blob: 940ff354585c9b3ff202f9e67088b0fcee20d54e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- 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);