Lines Matching refs:pkts

272     STACK_OF(MEMPACKET) *pkts;
320 if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) { in mempacket_test_new()
335 sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); in mempacket_test_free()
360 if ((thispkt = sk_MEMPACKET_value(ctx->pkts, 0)) == NULL in mempacket_test_read()
366 (void)sk_MEMPACKET_shift(ctx->pkts); in mempacket_test_read()
431 int numpkts = sk_MEMPACKET_num(ctx->pkts); in mempacket_swap_epoch()
440 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 1); in mempacket_swap_epoch()
488 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts) <= 0) { in mempacket_swap_epoch()
508 int numpkts = sk_MEMPACKET_num(ctx->pkts); in mempacket_move_packet()
519 thispkt = sk_MEMPACKET_value(ctx->pkts, s); in mempacket_move_packet()
524 if (sk_MEMPACKET_delete(ctx->pkts, s) != thispkt) in mempacket_move_packet()
528 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, d) <= 0) in mempacket_move_packet()
533 thispkt = sk_MEMPACKET_value(ctx->pkts, i); in mempacket_move_packet()
598 for (i = 0; i < sk_MEMPACKET_num(ctx->pkts); i++) { in mempacket_test_inject()
599 if (!TEST_ptr(looppkt = sk_MEMPACKET_value(ctx->pkts, i))) in mempacket_test_inject()
603 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, i) == 0) in mempacket_test_inject()
616 nextpkt = sk_MEMPACKET_value(ctx->pkts, i); in mempacket_test_inject()
637 if (!sk_MEMPACKET_push(ctx->pkts, thispkt)) in mempacket_test_inject()
665 ret = (long)(sk_MEMPACKET_num(ctx->pkts) == 0); in mempacket_test_ctrl()
677 thispkt = sk_MEMPACKET_value(ctx->pkts, 0); in mempacket_test_ctrl()