Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/npf/npfd Add a message when we are re-opening the p...



details:   https://anonhg.NetBSD.org/src/rev/63fd71ef2624
branches:  trunk
changeset: 827134:63fd71ef2624
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 16 11:17:45 2017 +0000

description:
Add a message when we are re-opening the pcap socket.

diffstat:

 usr.sbin/npf/npfd/npfd_log.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d84cf282a5f4 -r 63fd71ef2624 usr.sbin/npf/npfd/npfd_log.c
--- a/usr.sbin/npf/npfd/npfd_log.c      Mon Oct 16 10:10:48 2017 +0000
+++ b/usr.sbin/npf/npfd/npfd_log.c      Mon Oct 16 11:17:45 2017 +0000
@@ -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 @@
 
        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)



Home | Main Index | Thread Index | Old Index