Lines Matching refs:mm
946 socket_send(s, mm, src)
948 struct mbuf *mm;
956 mm, (struct mbuf *)0, NULL) != 0) {
983 struct mbuf *mm;
1110 mm = m_copy(mb0, 0, sizeof(struct ip6_hdr));
1112 if (mm == NULL) {
1131 oim = mtod(mm, struct omrt6msg *);
1137 im = mtod(mm, struct mrt6msg *);
1170 if (socket_send(ip6_mrouter, mm, &sin6) < 0) {
1346 struct mbuf *mm;
1352 mm = m_copy(m, 0, sizeof(struct ip6_hdr));
1353 if (mm &&
1354 (M_HASCL(mm) ||
1355 mm->m_len < sizeof(struct ip6_hdr)))
1356 mm = m_pullup(mm, sizeof(struct ip6_hdr));
1357 if (mm == NULL)
1367 oim = mtod(mm, struct omrt6msg *);
1373 im = mtod(mm, struct mrt6msg *);
1378 m_freem(mm);
1403 if (socket_send(ip6_mrouter, mm, &addr) < 0) {
1606 struct mbuf *mm;
1620 MGETHDR(mm, M_DONTWAIT, MT_HEADER);
1621 if (mm == NULL)
1625 mac_create_mbuf_multicast_encap(m, mif->m6_ifp, mm);
1628 mm->m_pkthdr.rcvif = NULL;
1629 mm->m_data += max_linkhdr;
1630 mm->m_len = sizeof(struct ip6_hdr);
1632 if ((mm->m_next = m_copy(m, 0, M_COPYALL)) == NULL) {
1633 m_freem(mm);
1636 i = MHLEN - M_LEADINGSPACE(mm);
1639 mm = m_pullup(mm, i);
1640 if (mm == NULL){
1641 m_freem(mm);
1645 mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);
1652 im6 = mtod(mm, struct mrt6msg *);
1661 if (socket_send(ip6_mrouter, mm, &addr) < 0) {