Module Name: src
Committed By: khorben
Date: Wed Aug 1 18:27:58 UTC 2018
Modified Files:
src/sys/dev/usb: if_umb.c
Log Message:
Fix building umb(4) on NetBSD-current
Patch by Robert Swindells; thank you!
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/usb/if_umb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_umb.c
diff -u src/sys/dev/usb/if_umb.c:1.3 src/sys/dev/usb/if_umb.c:1.4
--- src/sys/dev/usb/if_umb.c:1.3 Wed Aug 1 12:36:56 2018
+++ src/sys/dev/usb/if_umb.c Wed Aug 1 18:27:58 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: if_umb.c,v 1.3 2018/08/01 12:36:56 khorben Exp $ */
+/* $NetBSD: if_umb.c,v 1.4 2018/08/01 18:27:58 khorben Exp $ */
/* $OpenBSD: if_umb.c,v 1.18 2018/02/19 08:59:52 mpi Exp $ */
/*
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.3 2018/08/01 12:36:56 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.4 2018/08/01 18:27:58 khorben Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -923,7 +923,7 @@ umb_start(struct ifnet *ifp)
}
IFQ_DEQUEUE(&ifp->if_snd, m_head);
- bpf_mtap(ifp, m_head);
+ bpf_mtap(ifp, m_head, BPF_D_OUT);
ifp->if_flags |= IFF_OACTIVE;
ifp->if_timer = (2 * umb_xfer_tout) / 1000;