Lines Matching refs:mm
927 socket_send(s, mm, src)
929 struct mbuf *mm;
937 mm, (struct mbuf *)0, NULL) != 0) {
964 struct mbuf *mm;
1091 mm = m_copy(mb0, 0, sizeof(struct ip6_hdr));
1093 if (mm == NULL) {
1112 oim = mtod(mm, struct omrt6msg *);
1118 im = mtod(mm, struct mrt6msg *);
1151 if (socket_send(ip6_mrouter, mm, &sin6) < 0) {
1329 struct mbuf *mm;
1335 mm = m_copy(m, 0, sizeof(struct ip6_hdr));
1336 if (mm &&
1337 (M_HASCL(mm) ||
1338 mm->m_len < sizeof(struct ip6_hdr)))
1339 mm = m_pullup(mm, sizeof(struct ip6_hdr));
1340 if (mm == NULL)
1350 oim = mtod(mm, struct omrt6msg *);
1356 im = mtod(mm, struct mrt6msg *);
1361 m_freem(mm);
1386 if (socket_send(ip6_mrouter, mm, &addr) < 0) {
1566 struct mbuf *mm;
1580 MGETHDR(mm, M_DONTWAIT, MT_HEADER);
1581 if (mm == NULL)
1585 mac_create_mbuf_multicast_encap(m, mif->m6_ifp, mm);
1588 mm->m_pkthdr.rcvif = NULL;
1589 mm->m_data += max_linkhdr;
1590 mm->m_len = sizeof(struct ip6_hdr);
1592 if ((mm->m_next = m_copy(m, 0, M_COPYALL)) == NULL) {
1593 m_freem(mm);
1596 i = MHLEN - M_LEADINGSPACE(mm);
1599 mm = m_pullup(mm, i);
1600 if (mm == NULL){
1601 m_freem(mm);
1605 mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);
1612 im6 = mtod(mm, struct mrt6msg *);
1621 if (socket_send(ip6_mrouter, mm, &addr) < 0) {