Lines Matching refs:xi

71     char *key, int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi);
408 ipfw_xtable_info xi, xie; in table_create() local
415 memset(&xi, 0, sizeof(xi)); in table_create()
423 xi.limit = strtol(*av, NULL, 10); in table_create()
439 xi.type = val; in table_create()
441 error = table_parse_type(val, p, &xi.tflags); in table_create()
453 xi.vmask = fset; in table_create()
463 if (strlen(*av) > sizeof(xi.algoname)) in table_create()
465 strlcpy(xi.algoname, *av, sizeof(xi.algoname)); in table_create()
469 xi.flags |= IPFW_TGFLAGS_LOCKED; in table_create()
481 if (xi.algoname[0] == '\0' && xi.type == 0) in table_create()
482 xi.type = IPFW_TABLE_ADDR; in table_create()
483 if (xi.vmask == 0) in table_create()
484 xi.vmask = IPFW_VTYPE_LEGACY; in table_create()
486 error = table_do_create(oh, &xi); in table_create()
498 if (xi.limit != xie.limit || xi.type != xie.type || in table_create()
499 xi.tflags != xie.tflags || xi.vmask != xie.vmask || ( in table_create()
500 xi.algoname[0] != '\0' && strcmp(xi.algoname, in table_create()
501 xie.algoname) != 0) || xi.flags != xie.flags) in table_create()
540 ipfw_xtable_info xi; in table_modify() local
543 memset(&xi, 0, sizeof(xi)); in table_modify()
552 xi.limit = strtol(*av, NULL, 10); in table_modify()
553 xi.mflags |= IPFW_TMFLAGS_LIMIT; in table_modify()
561 if (table_do_modify(oh, &xi) != 0) in table_modify()
593 ipfw_xtable_info xi; in table_lock() local
595 memset(&xi, 0, sizeof(xi)); in table_lock()
597 xi.mflags |= IPFW_TMFLAGS_LOCK; in table_lock()
598 xi.flags |= (lock != 0) ? IPFW_TGFLAGS_LOCKED : 0; in table_lock()
600 if (table_do_modify(oh, &xi) != 0) in table_lock()
946 ipfw_xtable_info xi; in table_modify_record() local
983 memset(&xi, 0, sizeof(xi)); in table_modify_record()
986 tentry_fill_key(oh, ptent, *av, add, &type, &vmask, &xi); in table_modify_record()
991 if (xi.tablename[0] == '\0') { in table_modify_record()
992 xi.type = type; in table_modify_record()
993 xi.vmask = vmask; in table_modify_record()
994 strlcpy(xi.tablename, oh->ntlv.name, in table_modify_record()
995 sizeof(xi.tablename)); in table_modify_record()
999 xi.tablename); in table_modify_record()
1000 table_do_create(oh, &xi); in table_modify_record()
1077 table_show_entry(&xi, ptent); in table_modify_record()
1113 table_do_lookup(ipfw_obj_header *oh, char *key, ipfw_xtable_info *xi, in table_do_lookup() argument
1130 tentry_fill_key(oh, tent, key, 0, &type, &vmask, xi); in table_do_lookup()
1149 ipfw_xtable_info xi; in table_lookup() local
1158 memset(&xi, 0, sizeof(xi)); in table_lookup()
1159 error = table_do_lookup(oh, key, &xi, &xtent); in table_lookup()
1175 table_show_entry(&xi, &xtent); in table_lookup()
1430 int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi) in tentry_fill_key() argument
1440 if (xi->tablename[0] == '\0') in tentry_fill_key()
1441 error = table_get_info(oh, xi); in tentry_fill_key()
1448 type = xi->type; in tentry_fill_key()
1449 tflags = xi->tflags; in tentry_fill_key()
1450 vmask = xi->vmask; in tentry_fill_key()