Module Name: src
Committed By: christos
Date: Mon Oct 16 11:17:45 UTC 2017
Modified Files:
src/usr.sbin/npf/npfd: npfd_log.c
Log Message:
Add a message when we are re-opening the pcap socket.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/npf/npfd/npfd_log.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/npf/npfd/npfd_log.c
diff -u src/usr.sbin/npf/npfd/npfd_log.c:1.11 src/usr.sbin/npf/npfd/npfd_log.c:1.12
--- src/usr.sbin/npf/npfd/npfd_log.c:1.11 Sun Oct 15 11:26:10 2017
+++ src/usr.sbin/npf/npfd/npfd_log.c Mon Oct 16 07:17:45 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: npfd_log.c,v 1.11 2017/10/15 15:26:10 christos Exp $ */
+/* $NetBSD: npfd_log.c,v 1.12 2017/10/16 11:17:45 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npfd_log.c,v 1.11 2017/10/15 15:26:10 christos Exp $");
+__RCSID("$NetBSD: npfd_log.c,v 1.12 2017/10/16 11:17:45 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -247,6 +247,8 @@ npfd_log_pcap_reopen(npfd_log_t *ctx)
if (ctx->pcap != NULL)
pcap_close(ctx->pcap);
+ else
+ syslog(LOG_INFO, "reopening pcap socket");
ctx->pcap = pcap_create(ctx->ifname, errbuf);
if (ctx->pcap == NULL)