-/* $OpenBSD: bpf.c,v 1.206 2021/10/23 15:00:11 visa Exp $ */
+/* $OpenBSD: bpf.c,v 1.207 2021/11/10 04:45:15 dlg Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
* No interface attached yet.
*/
error = EINVAL;
- } else if (d->bd_bif->bif_ifp != NULL) {
+ } else if (d->bd_bif->bif_ifp != NULL) {
if (d->bd_promisc == 0) {
MUTEX_ASSERT_UNLOCKED(&d->bd_mtx);
NET_LOCK();
mh.mh_len = dlen;
mh.mh_data = (void *)data;
m0 = (struct mbuf *)&mh;
- } else
+ } else
m0 = m;
return _bpf_mtap(arg, m, m0, direction);
for (;;) {
count = min(m->m_len - off, len);
-
+
memcpy(cp, m->m_data + off, count);
len -= count;