Lines Matching refs:ptei

355 	struct tentry_info *ptei;
368 ptei = &tei[i];
369 if ((ptei->flags & TEI_FLAGS_UPDATED) != 0) {
373 * call in @ptei->value. Do add once again
376 error = ta->add(tc->astate, tinfo, ptei, v, &num);
382 error = ta->prepare_del(ch, ptei, vv);
384 error = ta->del(tc->astate, tinfo, ptei, vv, &num);
403 struct tentry_info *ptei;
429 ptei = &tei[i];
431 ta->prepare_add(ch, ptei, v) : ta->prepare_del(ch, ptei, v);
456 struct tentry_info *ptei;
465 ptei = &tei[i];
466 ta->flush_entry(ch, ptei, v);
467 if (ptei->ptv != NULL) {
468 free(ptei->ptv, M_IPFW);
469 ptei->ptv = NULL;
556 struct tentry_info *ptei;
652 ptei = &tei[i];
655 if ((error = check_table_limit(tc, ptei)) == 0) {
657 ptei, v, &num);
659 store_tei_result(ptei, OP_ADD, error, num);
716 struct tentry_info *ptei;
764 ptei = &tei[i];
766 error = ta->del(tc->astate, KIDX_TO_TI(ch, kidx), ptei, v,
769 store_tei_result(ptei, OP_DEL, error, num);
967 struct tentry_info *ptei, tei, *tei_buf;
1029 ptei = tei_buf;
1031 for (i = 0; i < ctlv->count; i++, ptent++, ptei++) {
1032 ptei->paddr = &ptent->k;
1033 ptei->subtype = ptent->subtype;
1034 ptei->masklen = ptent->masklen;
1036 ptei->flags |= TEI_FLAGS_UPDATE;
1039 ptei->pvalue = (struct table_value *)&ptent->v.value;
1047 ptei = tei_buf;
1049 for (i = 0; i < ctlv->count; i++, ptent++, ptei++) {
1050 if (ptei->flags & TEI_FLAGS_ADDED)
1052 else if (ptei->flags & TEI_FLAGS_DELETED)
1054 else if (ptei->flags & TEI_FLAGS_UPDATED)
1056 else if (ptei->flags & TEI_FLAGS_LIMIT)
1058 else if (ptei->flags & TEI_FLAGS_ERROR)
1060 else if (ptei->flags & TEI_FLAGS_NOTFOUND)
1062 else if (ptei->flags & TEI_FLAGS_EXISTS)
1064 ipfw_export_table_value_v1(ptei->pvalue, &ptent->v.value);