Lines Matching defs:m0
805 sbappendrecord(struct sockbuf *sb, struct mbuf *m0)
810 if (m0 == NULL || (sb->sb_flags & SB_DROP)) {
811 if (m0 != NULL)
812 m_freem(m0);
816 for (m = m0; m != NULL; m = m->m_next)
820 m_freem(m0);
825 int error = sflt_data_in(sb->sb_so, NULL, &m0, NULL,
830 m_freem(m0);
838 sballoc(sb, m0);
841 sb->sb_lastrecord->m_nextpkt = m0;
843 sb->sb_mb = m0;
845 sb->sb_lastrecord = m0;
846 sb->sb_mbtail = m0;
848 m = m0->m_next;
849 m0->m_next = 0;
850 if (m && (m0->m_flags & M_EOR)) {
851 m0->m_flags &= ~M_EOR;
854 sbcompress(sb, m, m0);
865 sbinsertoob(struct sockbuf *sb, struct mbuf *m0)
870 if (m0 == 0)
876 int error = sflt_data_in(sb->sb_so, NULL, &m0, NULL,
882 m_freem(m0);
907 sballoc(sb, m0);
908 m0->m_nextpkt = *mp;
910 /* m0 is actually the new tail */
911 sb->sb_lastrecord = m0;
913 *mp = m0;
914 m = m0->m_next;
915 m0->m_next = 0;
916 if (m && (m0->m_flags & M_EOR)) {
917 m0->m_flags &= ~M_EOR;
920 sbcompress(sb, m, m0);
928 * m0 must include a packet header with total length.
936 struct mbuf *m0, struct mbuf *control)
941 if (m0 && (m0->m_flags & M_PKTHDR) == 0)
944 if (m0)
945 space += m0->m_pkthdr.len;
961 n->m_next = m0; /* concatenate data to control */
963 control = m0;
997 sbappendaddr(struct sockbuf *sb, struct sockaddr *asa, struct mbuf *m0,
1006 if (m0 && (m0->m_flags & M_PKTHDR) == 0)
1010 if (m0 != NULL)
1011 m_freem(m0);
1022 error = sflt_data_in(sb->sb_so, asa, &m0, &control, 0, NULL);
1026 if (m0)
1027 m_freem(m0);
1037 result = sbappendaddr_internal(sb, asa, m0, control);
1039 if (m0)
1040 m_freem(m0);
1051 sbappendcontrol_internal(struct sockbuf *sb, struct mbuf *m0,
1066 for (m = m0; m; m = m->m_next)
1070 n->m_next = m0; /* concatenate data to control */
1095 sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control,
1105 if (m0 != NULL)
1106 m_freem(m0);
1117 error = sflt_data_in(sb->sb_so, NULL, &m0, &control, 0, NULL);
1121 if (m0)
1122 m_freem(m0);
1132 result = sbappendcontrol_internal(sb, m0, control);
1134 if (m0)
1135 m_freem(m0);