Lines Matching refs:tent
68 static void table_show_entry(ipfw_xtable_info *i, ipfw_obj_tentry *tent);
70 static void tentry_fill_key(ipfw_obj_header *oh, ipfw_obj_tentry *tent,
72 static void tentry_fill_value(ipfw_obj_header *oh, ipfw_obj_tentry *tent,
891 ipfw_obj_tentry *tent, int count, int atomic) in table_do_modify_record() argument
896 char xbuf[sizeof(*oh) + sizeof(ipfw_obj_ctlv) + sizeof(*tent)]; in table_do_modify_record()
900 sz = sizeof(*ctlv) + sizeof(*tent) * count; in table_do_modify_record()
919 tent_base = tent; in table_do_modify_record()
920 memcpy(ctlv + 1, tent, sizeof(*tent) * count); in table_do_modify_record()
921 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record()
922 for (i = 0; i < count; i++, tent++) { in table_do_modify_record()
923 tent->head.length = sizeof(ipfw_obj_tentry); in table_do_modify_record()
924 tent->idx = oh->idx; in table_do_modify_record()
931 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record()
933 memcpy(tent_base, ctlv + 1, sizeof(*tent) * count); in table_do_modify_record()
945 ipfw_obj_tentry *ptent, tent, *tent_buf; in table_modify_record() local
973 memset(&tent, 0, sizeof(tent)); in table_modify_record()
974 tent_buf = &tent; in table_modify_record()
977 if ((tent_buf = calloc(count, sizeof(tent))) == NULL) in table_modify_record()
1027 if (tent_buf != &tent) in table_modify_record()
1080 if (tent_buf != &tent) in table_modify_record()
1117 ipfw_obj_tentry *tent; in table_do_lookup() local
1124 tent = (ipfw_obj_tentry *)(oh + 1); in table_do_lookup()
1126 memset(tent, 0, sizeof(*tent)); in table_do_lookup()
1127 tent->head.length = sizeof(*tent); in table_do_lookup()
1128 tent->idx = 1; in table_do_lookup()
1130 tentry_fill_key(oh, tent, key, 0, &type, &vmask, xi); in table_do_lookup()
1140 *xtent = *tent; in table_do_lookup()
1429 tentry_fill_key(ipfw_obj_header *oh, ipfw_obj_tentry *tent, char *key, in tentry_fill_key() argument
1484 tentry_fill_key_type(key, tent, type, tflags); in tentry_fill_key()
1506 tentry_fill_value(ipfw_obj_header *oh __unused, ipfw_obj_tentry *tent, in tentry_fill_value() argument
1518 v = &tent->v.value; in tentry_fill_value()
1763 ipfw_obj_tentry *tent; in table_show_list() local
1768 tent = (ipfw_obj_tentry *)(i + 1); in table_show_list()
1775 table_show_entry(i, tent); in table_show_list()
1776 tent = (ipfw_obj_tentry *)((caddr_t)tent + tent->head.length); in table_show_list()
1870 table_show_entry(ipfw_xtable_info *i, ipfw_obj_tentry *tent) in table_show_entry() argument
1877 table_show_value(pval, sizeof(pval), &tent->v.value, i->vmask, in table_show_entry()
1883 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry()
1884 printf("%s/%u %s\n", tbuf, tent->masklen, pval); in table_show_entry()
1888 printf("%s %s\n", tent->k.iface, pval); in table_show_entry()
1892 printf("%u %s\n", tent->k.key, pval); in table_show_entry()
1896 tfe = &tent->k.flow; in table_show_entry()