diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-01-08 18:51:19 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-01-08 18:51:19 +0000 |
commit | dbec8a37e99faa88941367bebac8d593f2a646c3 (patch) | |
tree | 772951a048be2caaf776a173b62cb2842ccc3a7f /sbin | |
parent | 89427caa12bd7d0476b23eea5f72414c57874ab3 (diff) |
Use the handler specified in phandler instead of always using
dump_packet. Report and patch from Peter Postma, thanks.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pflogd/pflogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c index 991cdfd3ade..06fde149cfd 100644 --- a/sbin/pflogd/pflogd.c +++ b/sbin/pflogd/pflogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pflogd.c,v 1.31 2004/09/17 07:11:55 deraadt Exp $ */ +/* $OpenBSD: pflogd.c,v 1.32 2005/01/08 18:51:18 canacar Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -606,7 +606,7 @@ main(int argc, char **argv) while (1) { np = pcap_dispatch(hpcap, PCAP_NUM_PKTS, - dump_packet, (u_char *)dpcap); + phandler, (u_char *)dpcap); if (np < 0) logmsg(LOG_NOTICE, "%s", pcap_geterr(hpcap)); |