Lines Matching refs:meta
59 * (i.e. !SCTP_CHUNK_ISSENT(meta->b_cont)). However, if transmission for the
694 mblk_t *meta;
707 for (meta = sctp->sctp_xmit_head; meta != NULL; meta = meta->b_next) {
708 msg_hdr = (sctp_msg_hdr_t *)meta->b_rptr;
709 if (SCTP_IS_MSG_ABANDONED(meta) ||
710 SCTP_MSG_TO_BE_ABANDONED(meta, msg_hdr, sctp)) {
713 for (mp = meta->b_cont; mp != NULL; mp = mp->b_next) {
815 sctp_get_msg_to_send(sctp_t *sctp, mblk_t **mp, mblk_t *meta, int *error,
829 while (meta != NULL) {
830 tmp_meta = meta->b_next;
831 msg_hdr = (sctp_msg_hdr_t *)meta->b_rptr;
832 mp1 = meta->b_cont;
833 if (SCTP_IS_MSG_ABANDONED(meta))
835 if (!SCTP_MSG_TO_BE_ABANDONED(meta, msg_hdr, sctp)) {
841 sctp->sctp_xmit_head, meta));
843 return (meta);
861 *error = sctp_check_abandoned_msg(sctp, meta);
873 if (meta->b_prev == NULL) {
874 ASSERT(sctp->sctp_xmit_head == meta);
876 if (sctp->sctp_xmit_tail == meta)
878 meta->b_next = NULL;
881 } else if (meta->b_next == NULL) {
882 if (sctp->sctp_xmit_tail == meta)
883 sctp->sctp_xmit_tail = meta->b_prev;
884 meta->b_prev->b_next = NULL;
885 meta->b_prev = NULL;
887 meta->b_prev->b_next = tmp_meta;
888 tmp_meta->b_prev = meta->b_prev;
889 if (sctp->sctp_xmit_tail == meta)
891 meta->b_prev = NULL;
892 meta->b_next = NULL;
901 sctp_sendfail_event(sctp, meta, 0, B_TRUE);
903 meta = tmp_meta;
922 meta = sctp_chunkify(sctp, fp->sf_pmss, firstseg_len, cansend);
923 if (meta == NULL)
942 if ((meta = sctp->sctp_xmit_tail->b_next) == NULL)
991 mblk_t *meta = sctp->sctp_xmit_tail;
1042 if (meta != NULL)
1043 mp = meta->b_cont;
1056 meta = sctp_get_msg_to_send(sctp, &mp,
1057 meta == NULL ? NULL : meta->b_next, &error, sacklen,
1059 if (error != 0 || meta == NULL) {
1064 sctp->sctp_xmit_tail = meta;
1077 fp = SCTP_CHUNK_DEST(meta);
1118 fp, chunklen, meta);
1128 fp = SCTP_CHUNK_DEST(meta);
1164 fp, chunklen, meta);
1174 SCTP_CHUNK_SENT(sctp, mp, sdc, fp, chunklen, meta);
1214 meta = sctp_get_msg_to_send(sctp, &mp,
1215 meta->b_next, &error, seglen,
1221 if (meta == NULL)
1223 sctp->sctp_xmit_tail = meta;
1226 if (!SCTP_CHUNK_ISSENT(mp) && SCTP_CHUNK_DEST(meta) &&
1227 fp != SCTP_CHUNK_DEST(meta)) {
1259 SCTP_CHUNK_SENT(sctp, mp, sdc, fp, chunklen, meta);
1333 * Given a message meta block, meta, this routine creates or modifies
1342 sctp_add_ftsn_set(sctp_ftsn_set_t **s, sctp_faddr_t *fp, mblk_t *meta,
1346 sctp_msg_hdr_t *msg_hdr = (sctp_msg_hdr_t *)meta->b_rptr;
1457 sctp_make_ftsns(sctp_t *sctp, mblk_t *meta, mblk_t *mp, mblk_t **nmp,
1462 mblk_t *meta_head = meta;
1477 while (meta != NULL &&
1485 !sctp_add_ftsn_set(&sets, fp, meta, &nsets, seglen)) {
1486 meta = NULL;
1495 meta = meta->b_next;
1496 if (meta != NULL) {
1497 mp1 = meta->b_cont;
1508 if (meta == meta_head)
1586 * This function steps through messages starting at meta and checks if
1593 sctp_check_adv_ack_pt(sctp_t *sctp, mblk_t *meta, mblk_t *mp)
1602 msg_hdr = (sctp_msg_hdr_t *)meta->b_rptr;
1603 if (!SCTP_IS_MSG_ABANDONED(meta) &&
1604 !SCTP_MSG_TO_BE_ABANDONED(meta, msg_hdr, sctp)) {
1607 while (meta != NULL) {
1621 if ((meta = meta->b_next) != NULL) {
1622 msg_hdr = (sctp_msg_hdr_t *)meta->b_rptr;
1623 if (!SCTP_IS_MSG_ABANDONED(meta) &&
1624 !SCTP_MSG_TO_BE_ABANDONED(meta, msg_hdr, sctp)) {
1627 for (mp = meta->b_cont; mp != NULL; mp = mp->b_next) {
1670 mblk_t *meta = sctp->sctp_xmit_head;
1686 while (meta != NULL) {
1687 for (mp = meta->b_cont; mp != NULL; mp = mp->b_next) {
1727 meta, mp);
1740 meta = meta->b_next;
1741 if (meta != NULL && sctp->sctp_prsctp_aware) {
1742 mhdr = (sctp_msg_hdr_t *)meta->b_rptr;
1744 while (meta != NULL && (SCTP_IS_MSG_ABANDONED(meta) ||
1745 SCTP_MSG_TO_BE_ABANDONED(meta, mhdr, sctp))) {
1746 meta = meta->b_next;
1802 pkt = sctp_rexmit_packet(sctp, &meta, &mp, fp, &pkt_len);
1841 sctp_make_ftsns(sctp, meta, mp, &nmp, fp, &seglen);
1848 * Move to the next unabandoned chunk. XXXCheck if meta will
1851 while (meta != NULL && SCTP_IS_MSG_ABANDONED(meta))
1852 meta = meta->b_next;
1853 if (meta != NULL)
1931 SCTP_CHUNK_SENT(sctp, mp, sdc, fp, chunklen, meta);
1949 for (meta = meta->b_next; meta != NULL;
1950 meta = meta->b_next) {
1951 mhdr = (sctp_msg_hdr_t *)meta->b_rptr;
1953 if (SCTP_IS_MSG_ABANDONED(meta) ||
1954 SCTP_MSG_TO_BE_ABANDONED(meta, mhdr,
1959 mp = meta->b_cont;
1966 meta = sctp_get_msg_to_send(sctp, &mp, NULL, &error,
1968 if (error != 0 || meta == NULL) {
1999 SCTP_CHUNK_SENT(sctp, mp, sdc, fp, chunklen, meta);
2066 * to be retransmitted to the given fp. The given meta and mp
2074 sctp_rexmit_packet(sctp_t *sctp, mblk_t **meta, mblk_t **mp, sctp_faddr_t *fp,
2111 SCTP_CHUNK_SENT(sctp, *mp, sdc, fp, chunklen, *meta);
2137 for (*meta = (*meta)->b_next; *meta != NULL;
2138 *meta = (*meta)->b_next) {
2139 mhdr = (sctp_msg_hdr_t *)(*meta)->b_rptr;
2141 if (SCTP_IS_MSG_ABANDONED(*meta) ||
2142 SCTP_MSG_TO_BE_ABANDONED(*meta, mhdr,
2147 *mp = (*meta)->b_cont;
2180 SCTP_CHUNK_SENT(sctp, *mp, sdc, fp, chunklen, *meta);
2209 mblk_t *meta;
2270 for (meta = sctp->sctp_xmit_head; meta != NULL; meta = meta->b_next) {
2271 sctp_msg_hdr_t *mhdr = (sctp_msg_hdr_t *)meta->b_rptr;
2273 if (SCTP_IS_MSG_ABANDONED(meta) ||
2274 SCTP_MSG_TO_BE_ABANDONED(meta, mhdr, sctp)) {
2278 for (mp = meta->b_cont; mp != NULL; mp = mp->b_next) {
2294 pkt = sctp_rexmit_packet(sctp, &meta, &mp, fp, &pkt_len);
2315 meta == NULL)
2318 meta = meta->b_next;
2319 if (meta == NULL)
2324 meta != NULL && burst > 0; meta = meta->b_next, burst--) {
2326 mp = meta->b_cont;