Lines Matching refs:ptei

354 	struct tentry_info *ptei;
367 ptei = &tei[i];
368 if ((ptei->flags & TEI_FLAGS_UPDATED) != 0) {
372 * call in @ptei->value. Do add once again
375 error = ta->add(tc->astate, tinfo, ptei, v, &num);
381 error = ta->prepare_del(ch, ptei, vv);
383 error = ta->del(tc->astate, tinfo, ptei, vv, &num);
402 struct tentry_info *ptei;
428 ptei = &tei[i];
430 ta->prepare_add(ch, ptei, v) : ta->prepare_del(ch, ptei, v);
455 struct tentry_info *ptei;
464 ptei = &tei[i];
465 ta->flush_entry(ch, ptei, v);
466 if (ptei->ptv != NULL) {
467 free(ptei->ptv, M_IPFW);
468 ptei->ptv = NULL;
555 struct tentry_info *ptei;
651 ptei = &tei[i];
654 if ((error = check_table_limit(tc, ptei)) == 0) {
656 ptei, v, &num);
658 store_tei_result(ptei, OP_ADD, error, num);
715 struct tentry_info *ptei;
763 ptei = &tei[i];
765 error = ta->del(tc->astate, KIDX_TO_TI(ch, kidx), ptei, v,
768 store_tei_result(ptei, OP_DEL, error, num);
966 struct tentry_info *ptei, tei, *tei_buf;
1028 ptei = tei_buf;
1030 for (i = 0; i < ctlv->count; i++, ptent++, ptei++) {
1031 ptei->paddr = &ptent->k;
1032 ptei->subtype = ptent->subtype;
1033 ptei->masklen = ptent->masklen;
1035 ptei->flags |= TEI_FLAGS_UPDATE;
1038 ptei->pvalue = (struct table_value *)&ptent->v.value;
1046 ptei = tei_buf;
1048 for (i = 0; i < ctlv->count; i++, ptent++, ptei++) {
1049 if (ptei->flags & TEI_FLAGS_ADDED)
1051 else if (ptei->flags & TEI_FLAGS_DELETED)
1053 else if (ptei->flags & TEI_FLAGS_UPDATED)
1055 else if (ptei->flags & TEI_FLAGS_LIMIT)
1057 else if (ptei->flags & TEI_FLAGS_ERROR)
1059 else if (ptei->flags & TEI_FLAGS_NOTFOUND)
1061 else if (ptei->flags & TEI_FLAGS_EXISTS)
1063 ipfw_export_table_value_v1(ptei->pvalue, &ptent->v.value);