Lines Matching defs:tei

106     struct tentry_info *tei, uint32_t count, int op, struct table_config **ptc);
190 * Checks if we're able to insert/update entry @tei into table
192 * May alter @tei to indicate insertion error / insert
198 check_table_limit(struct table_config *tc, struct tentry_info *tei)
204 if ((tei->flags & TEI_FLAGS_UPDATE) == 0) {
206 tei->flags |= TEI_FLAGS_LIMIT;
216 tei->flags |= TEI_FLAGS_DONTADD;
226 store_tei_result(struct tentry_info *tei, int op, int error, uint32_t num)
249 tei->flags |= flag;
289 struct tentry_info *tei, uint32_t count, int op,
311 check_table_limit(tc, tei) != 0)
324 if ((tei->flags & TEI_FLAGS_COMPAT) == 0)
351 struct table_info *tinfo, struct tentry_info *tei, caddr_t ta_buf_m,
368 ptei = &tei[i];
391 * Prepares add/del state for all @count entries in @tei.
399 struct tentry_info *tei, uint32_t count, int op, caddr_t *ta_buf)
429 ptei = &tei[i];
447 * Flushes allocated state for each @count entries in @tei.
452 struct tentry_info *tei, uint32_t count, int rollback,
465 ptei = &tei[i];
477 ta->flush_entry(ch, &tei[i], v);
539 * After that, prepare_add callback is called for each @tei entry.
543 * for each @tei.
549 struct tentry_info *tei, uint8_t flags, uint32_t count)
571 flush_batch_buffer(ch, ta, tei, count, rollback,
578 error = find_ref_table(ch, ti, tei, count, OP_ADD, &tc);
592 ts.tei = tei;
601 error = prepare_batch_buffer(ch, ta, tei, count, OP_ADD, &ta_buf_m);
652 ptei = &tei[i];
680 tei, ta_buf_m, count, i);
688 ipfw_garbage_table_values(ch, tc, tei, count, rollback);
700 flush_batch_buffer(ch, ta, tei, count, rollback, ta_buf_m, ta_buf);
712 struct tentry_info *tei, uint8_t flags, uint32_t count)
727 error = find_ref_table(ch, ti, tei, count, OP_DEL, &tc);
738 error = prepare_batch_buffer(ch, ta, tei, count, OP_DEL, &ta_buf_m);
764 ptei = &tei[i];
778 ipfw_garbage_table_values(ch, tc, tei, count, 0);
791 flush_batch_buffer(ch, ta, tei, count, 0, ta_buf_m, ta_buf);
908 struct tentry_info tei;
926 memset(&tei, 0, sizeof(tei));
927 tei.paddr = &xent->k;
928 tei.masklen = xent->masklen;
930 tei.pvalue = &v;
932 tei.flags = TEI_FLAGS_COMPAT;
935 tei.subtype = AF_INET;
937 tei.subtype = AF_INET6;
945 add_table_entry(ch, &ti, &tei, 0, 1) :
946 del_table_entry(ch, &ti, &tei, 0, 1);
967 struct tentry_info *ptei, tei, *tei_buf;
1023 memset(&tei, 0, sizeof(tei));
1024 tei_buf = &tei;
1026 tei_buf = malloc(ctlv->count * sizeof(tei), M_TEMP,
1067 if (tei_buf != &tei)