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 can't call pcap_datalink before activate.



details:   https://anonhg.NetBSD.org/src/rev/db64c50daa93
branches:  trunk
changeset: 822564:db64c50daa93
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 25 11:00:27 2017 +0000

description:
can't call pcap_datalink before activate.

diffstat:

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

diffs (26 lines):

diff -r 9e034dd602a5 -r db64c50daa93 usr.sbin/npf/npfd/npfd_log.c
--- a/usr.sbin/npf/npfd/npfd_log.c      Sat Mar 25 10:07:55 2017 +0000
+++ b/usr.sbin/npf/npfd/npfd_log.c      Sat Mar 25 11:00:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npfd_log.c,v 1.9 2017/01/24 20:25:08 christos Exp $    */
+/*     $NetBSD: npfd_log.c,v 1.10 2017/03/25 11:00:27 christos Exp $   */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfd_log.c,v 1.9 2017/01/24 20:25:08 christos Exp $");
+__RCSID("$NetBSD: npfd_log.c,v 1.10 2017/03/25 11:00:27 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -91,7 +91,6 @@
                if (hdr->magic != TCPDUMP_MAGIC ||
                    hdr->version_major != PCAP_VERSION_MAJOR ||
                    hdr->version_minor != PCAP_VERSION_MINOR ||
-                   hdr->linktype != (u_int)pcap_datalink(ctx->pcap) ||
                    hdr->sigfigs != (u_int)pcap_get_tstamp_precision(ctx->pcap))
                        goto out;
                break;



Home | Main Index | Thread Index | Old Index