Lines Matching refs:mp
128 iptap_ipf_input(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, char *frame_header)
133 char *hdr = (char *)mbuf_data(mp);
134 size_t start = (size_t)((char*)mbuf_datastart(mp));
135 size_t o_len = mp->m_len;
138 if (mbuf_setdata(mp, frame_header, o_len + ((size_t)hdr - (size_t)frame_header)) == 0) {
139 iptap_enqueue_mbuf(ifp, proto, mp, ((size_t)hdr - (size_t)frame_header), 0, IPTAP_INPUT_TAG);
140 mbuf_setdata(mp, hdr, o_len);
143 iptap_enqueue_mbuf(ifp, proto, mp, 0, 0, IPTAP_INPUT_TAG);
153 iptap_ipf_output(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, u_int32_t pre, u_int32_t post)
157 iptap_enqueue_mbuf(ifp, proto, mp, pre, post, IPTAP_OUTPUT_TAG);
164 iptap_enqueue_mbuf(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, u_int32_t pre, u_int32_t post, u_int8_t io)
168 mbuf_t copy, itr = (mbuf_t)mp;
192 mbuf_dup((mbuf_t)mp, MBUF_DONTWAIT, ©);