Lines Matching defs:thispkt

372     MEMPACKET *thispkt;
378 thispkt = sk_MEMPACKET_value(ctx->pkts, 0);
379 if (thispkt == NULL || thispkt->num != ctx->currpkt) {
387 if (outl > thispkt->len)
388 outl = thispkt->len;
390 if (thispkt->type != INJECT_PACKET_IGNORE_REC_SEQ
398 for (rem = thispkt->len, rec = thispkt->data; rem > 0; rem -= len) {
433 memcpy(out, thispkt->data, outl);
434 mempacket_free(thispkt);
442 MEMPACKET *thispkt;
450 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 2);
451 if (thispkt == NULL)
454 if (sk_MEMPACKET_delete(ctx->pkts, numpkts - 2) != thispkt)
458 thispkt->num++;
459 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts - 1) <= 0)
463 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 2);
464 if (thispkt == NULL)
466 thispkt->num--;
475 MEMPACKET *thispkt = NULL, *looppkt, *nextpkt, *allpkts[3];
506 if (!TEST_ptr(allpkts[i] = OPENSSL_malloc(sizeof(*thispkt))))
508 thispkt = allpkts[i];
510 if (!TEST_ptr(thispkt->data = OPENSSL_malloc(inl)))
520 memcpy(thispkt->data, in + len, inl - len);
521 thispkt->len = inl - len;
523 memcpy(thispkt->data, in, inl);
524 thispkt->len = inl;
526 thispkt->num = (pktnum >= 0) ? (unsigned int)pktnum : ctx->lastpkt + i;
527 thispkt->type = type;
532 if (looppkt->num > thispkt->num) {
533 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, i) == 0)
552 } else if (looppkt->num == thispkt->num) {
558 thispkt->num++;
566 thispkt = allpkts[i];
567 if (!sk_MEMPACKET_push(ctx->pkts, thispkt))
591 MEMPACKET *thispkt;
607 thispkt = sk_MEMPACKET_value(ctx->pkts, 0);
608 if (thispkt == NULL)
611 ret = thispkt->len;