Lines Matching full:xi

64     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') { in table_create()
484 if (xi.type == 0) in table_create()
485 xi.type = IPFW_TABLE_ADDR; in table_create()
486 algo = match_value(tablealgos, xi.type); in table_create()
488 strlcpy(xi.algoname, algo, sizeof(xi.algoname)); in table_create()
490 if (xi.vmask == 0) in table_create()
491 xi.vmask = IPFW_VTYPE_LEGACY; in table_create()
493 error = table_do_create(oh, &xi); in table_create()
505 if (xi.limit != xie.limit || xi.type != xie.type || in table_create()
506 xi.tflags != xie.tflags || xi.vmask != xie.vmask || ( in table_create()
507 xi.algoname[0] != '\0' && strcmp(xi.algoname, in table_create()
508 xie.algoname) != 0) || xi.flags != xie.flags) in table_create()
547 ipfw_xtable_info xi; in table_modify() local
550 memset(&xi, 0, sizeof(xi)); in table_modify()
559 xi.limit = strtol(*av, NULL, 10); in table_modify()
560 xi.mflags |= IPFW_TMFLAGS_LIMIT; in table_modify()
568 if (table_do_modify(oh, &xi) != 0) in table_modify()
600 ipfw_xtable_info xi; in table_lock() local
602 memset(&xi, 0, sizeof(xi)); in table_lock()
604 xi.mflags |= IPFW_TMFLAGS_LOCK; in table_lock()
605 xi.flags |= (lock != 0) ? IPFW_TGFLAGS_LOCKED : 0; in table_lock()
607 if (table_do_modify(oh, &xi) != 0) in table_lock()
953 ipfw_xtable_info xi; in table_modify_record() local
990 memset(&xi, 0, sizeof(xi)); in table_modify_record()
993 tentry_fill_key(oh, ptent, *av, add, &type, &vmask, &xi); in table_modify_record()
998 if (xi.tablename[0] == '\0') { in table_modify_record()
999 xi.type = type; in table_modify_record()
1000 xi.vmask = vmask; in table_modify_record()
1001 strlcpy(xi.tablename, oh->ntlv.name, in table_modify_record()
1002 sizeof(xi.tablename)); in table_modify_record()
1006 xi.tablename); in table_modify_record()
1007 table_do_create(oh, &xi); in table_modify_record()
1084 table_show_entry(&xi, ptent); in table_modify_record()
1118 table_do_lookup(ipfw_obj_header *oh, char *key, ipfw_xtable_info *xi, in table_do_lookup() argument
1135 tentry_fill_key(oh, tent, key, 0, &type, &vmask, xi); in table_do_lookup()
1154 ipfw_xtable_info xi; in table_lookup() local
1163 memset(&xi, 0, sizeof(xi)); in table_lookup()
1164 error = table_do_lookup(oh, key, &xi, &xtent); in table_lookup()
1180 table_show_entry(&xi, &xtent); in table_lookup()
1453 int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi) in tentry_fill_key() argument
1463 if (xi->tablename[0] == '\0') in tentry_fill_key()
1464 error = table_get_info(oh, xi); in tentry_fill_key()
1471 type = xi->type; in tentry_fill_key()
1472 tflags = xi->tflags; in tentry_fill_key()
1473 vmask = xi->vmask; in tentry_fill_key()