diff options
Diffstat (limited to 'sys/dev/iicbus/if_ic.c')
-rw-r--r-- | sys/dev/iicbus/if_ic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/iicbus/if_ic.c b/sys/dev/iicbus/if_ic.c index 5453e82..a6660b7 100644 --- a/sys/dev/iicbus/if_ic.c +++ b/sys/dev/iicbus/if_ic.c @@ -310,8 +310,7 @@ icintr (device_t dev, int event, char *ptr) sc->ic_if.if_ipackets ++; sc->ic_if.if_ibytes += len; - if (sc->ic_if.if_bpf) - bpf_tap(&sc->ic_if, sc->ic_ifbuf, len + ICHDRLEN); + BPF_TAP(&sc->ic_if, sc->ic_ifbuf, len + ICHDRLEN); top = m_devget(sc->ic_ifbuf + ICHDRLEN, len, 0, &sc->ic_if, 0); @@ -418,7 +417,7 @@ icoutput(struct ifnet *ifp, struct mbuf *m, m0.m_data = (char *)&hdr; n = &m0; - bpf_mtap(ifp, n); + BPF_MTAP(ifp, n); } sc->ic_sending = 1; |