Lines Matching refs:m
61 register MBuf m = m0; local
75 ip = MBUF_TO(m, struct ip *);
103 ip->ip_sum = cksum(m, hlen);
105 if_output(so, m);
127 MBuf *mnext = &m->m_nextpkt;
133 m0 = m;
137 m = mbuf_alloc();
138 if (m == 0) {
143 m->m_data += if_maxlinkhdr;
144 mhip = MBUF_TO(m, struct ip *);
153 m->m_len = mhlen;
163 if (mbuf_copy(m, m0, off, len) < 0) {
170 mhip->ip_sum = cksum(m, mhlen);
171 *mnext = m;
172 mnext = &m->m_nextpkt;
179 m = m0;
180 mbuf_trim(m, hlen + firstlen - (u_int16_t)ip->ip_len);
181 ip->ip_len = htons((u_int16_t)m->m_len);
184 ip->ip_sum = cksum(m, hlen);
186 for (m = m0; m; m = m0) {
187 m0 = m->m_nextpkt;
188 m->m_nextpkt = 0;
190 if_output(so, m);
192 mbuf_free(m);