diff options
| author | ozaki-r <ozaki-r@NetBSD.org> | 2016-06-10 13:27:10 +0000 |
|---|---|---|
| committer | ozaki-r <ozaki-r@NetBSD.org> | 2016-06-10 13:27:10 +0000 |
| commit | 758ba73ee55c20eff84a121752cf7d6087976630 (patch) | |
| tree | 6a4724fed491e660c4779c810d1801ae07bb7d6f /sys/arch/sun2/dev | |
| parent | f58c7f8f4b992ed27069e9932a34bf44ffe8e25b (diff) | |
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Diffstat (limited to 'sys/arch/sun2/dev')
| -rw-r--r-- | sys/arch/sun2/dev/if_ec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sun2/dev/if_ec.c b/sys/arch/sun2/dev/if_ec.c index dd3c5d1ed39..9b6b6c2176f 100644 --- a/sys/arch/sun2/dev/if_ec.c +++ b/sys/arch/sun2/dev/if_ec.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ec.c,v 1.24 2016/02/09 08:32:10 ozaki-r Exp $ */ +/* $NetBSD: if_ec.c,v 1.25 2016/06/10 13:27:13 ozaki-r Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.24 2016/02/09 08:32:10 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.25 2016/06/10 13:27:13 ozaki-r Exp $"); #include "opt_inet.h" #include "opt_ns.h" @@ -494,7 +494,7 @@ ec_recv(struct ec_softc *sc, int intbit) MGETHDR(m0, M_DONTWAIT, MT_DATA); if (m0 == NULL) break; - m0->m_pkthdr.rcvif = ifp; + m_set_rcvif(m0, ifp); m0->m_pkthdr.len = total_length; length = MHLEN; m = m0; |
