summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2007-03-05 14:53:43 +0000
committerBob Beck <beck@cvs.openbsd.org>2007-03-05 14:53:43 +0000
commit778a374b4e75b7371eaccfc3326f06ca48a8644f (patch)
tree9b113293d23e89d15fd477b5b471ac41bc23872a /libexec
parentb05d0b601a37c784bdf76a1876a18395924e9426 (diff)
Make spamlogd log inbound/outbound like it did before.
ok henning@
Diffstat (limited to 'libexec')
-rw-r--r--libexec/spamlogd/spamlogd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/spamlogd/spamlogd.c b/libexec/spamlogd/spamlogd.c
index efacbb47d6b..071529a2859 100644
--- a/libexec/spamlogd/spamlogd.c
+++ b/libexec/spamlogd/spamlogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamlogd.c,v 1.17 2007/03/04 03:25:54 deraadt Exp $ */
+/* $OpenBSD: spamlogd.c,v 1.18 2007/03/05 14:53:42 beck Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -187,7 +187,10 @@ logpkt_handler(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
}
if (ipstraddr[0] != '\0') {
- logmsg(LOG_DEBUG,"add %s to db", ipstraddr);
+ if (hdr->dir == PF_IN)
+ logmsg(LOG_DEBUG,"inbound %s", ipstraddr);
+ else
+ logmsg(LOG_DEBUG,"outbound %s", ipstraddr);
dbupdate(PATH_SPAMD_DB, ipstraddr);
}
}