Lines Matching refs:pkts
265 STACK_OF(MEMPACKET) *pkts;
313 if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) { in mempacket_test_new()
328 sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); in mempacket_test_free()
353 thispkt = sk_MEMPACKET_value(ctx->pkts, 0); in mempacket_test_read()
359 (void)sk_MEMPACKET_shift(ctx->pkts); in mempacket_test_read()
424 int numpkts = sk_MEMPACKET_num(ctx->pkts); in mempacket_swap_epoch()
433 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 1); in mempacket_swap_epoch()
481 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts) <= 0) { in mempacket_swap_epoch()
501 int numpkts = sk_MEMPACKET_num(ctx->pkts); in mempacket_swap_recent()
508 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 2); in mempacket_swap_recent()
512 if (sk_MEMPACKET_delete(ctx->pkts, numpkts - 2) != thispkt) in mempacket_swap_recent()
517 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, numpkts - 1) <= 0) in mempacket_swap_recent()
521 thispkt = sk_MEMPACKET_value(ctx->pkts, numpkts - 2); in mempacket_swap_recent()
588 for (i = 0; (looppkt = sk_MEMPACKET_value(ctx->pkts, i)) != NULL; i++) { in mempacket_test_inject()
591 if (sk_MEMPACKET_insert(ctx->pkts, thispkt, i) == 0) in mempacket_test_inject()
604 nextpkt = sk_MEMPACKET_value(ctx->pkts, i); in mempacket_test_inject()
625 if (!sk_MEMPACKET_push(ctx->pkts, thispkt)) in mempacket_test_inject()
653 ret = (long)(sk_MEMPACKET_num(ctx->pkts) == 0); in mempacket_test_ctrl()
665 thispkt = sk_MEMPACKET_value(ctx->pkts, 0); in mempacket_test_ctrl()