Source-Changes-HG archive

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

[src/bouyer-socketcan]: src/sys/netcan Use bpf_mtap() not bpf_mtap_af(). Now ...



details:   https://anonhg.NetBSD.org/src/rev/c06876ff242e
branches:  bouyer-socketcan
changeset: 820903:c06876ff242e
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Apr 24 13:38:33 2017 +0000

description:
Use bpf_mtap() not bpf_mtap_af(). Now files produced by tcpdump can be
decoded by wireshark.

diffstat:

 sys/netcan/if_canloop.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 22307e9d6b6e -r c06876ff242e sys/netcan/if_canloop.c
--- a/sys/netcan/if_canloop.c   Sun Apr 23 21:05:09 2017 +0000
+++ b/sys/netcan/if_canloop.c   Mon Apr 24 13:38:33 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_canloop.c,v 1.1.2.5 2017/04/19 22:17:56 bouyer Exp $        */
+/*     $NetBSD: if_canloop.c,v 1.1.2.6 2017/04/24 13:38:33 bouyer Exp $        */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_canloop.c,v 1.1.2.5 2017/04/19 22:17:56 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_canloop.c,v 1.1.2.6 2017/04/24 13:38:33 bouyer Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_can.h"
@@ -166,7 +166,7 @@
                        panic("canloop_output: no header mbuf");
                m_set_rcvif(m, ifp);
                if (ifp->if_flags & IFF_LOOPBACK)
-                       bpf_mtap_af(ifp, AF_CAN, m);
+                       bpf_mtap(ifp, m);
 
                pktlen = m->m_pkthdr.len;
                ifp->if_opackets++;



Home | Main Index | Thread Index | Old Index