Lines Matching defs:xi

65     char *key, int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi);
408 ipfw_xtable_info xi, xie;
415 memset(&xi, 0, sizeof(xi));
423 xi.limit = strtol(*av, NULL, 10);
439 xi.type = val;
441 error = table_parse_type(val, p, &xi.tflags);
453 xi.vmask = fset;
463 if (strlen(*av) > sizeof(xi.algoname))
465 strlcpy(xi.algoname, *av, sizeof(xi.algoname));
469 xi.flags |= IPFW_TGFLAGS_LOCKED;
481 if (xi.algoname[0] == '\0') {
484 if (xi.type == 0)
485 xi.type = IPFW_TABLE_ADDR;
486 algo = match_value(tablealgos, xi.type);
488 strlcpy(xi.algoname, algo, sizeof(xi.algoname));
490 if (xi.vmask == 0)
491 xi.vmask = IPFW_VTYPE_LEGACY;
493 error = table_do_create(oh, &xi);
505 if (xi.limit != xie.limit || xi.type != xie.type ||
506 xi.tflags != xie.tflags || xi.vmask != xie.vmask || (
507 xi.algoname[0] != '\0' && strcmp(xi.algoname,
508 xie.algoname) != 0) || xi.flags != xie.flags)
547 ipfw_xtable_info xi;
550 memset(&xi, 0, sizeof(xi));
559 xi.limit = strtol(*av, NULL, 10);
560 xi.mflags |= IPFW_TMFLAGS_LIMIT;
568 if (table_do_modify(oh, &xi) != 0)
600 ipfw_xtable_info xi;
602 memset(&xi, 0, sizeof(xi));
604 xi.mflags |= IPFW_TMFLAGS_LOCK;
605 xi.flags |= (lock != 0) ? IPFW_TGFLAGS_LOCKED : 0;
607 if (table_do_modify(oh, &xi) != 0)
953 ipfw_xtable_info xi;
990 memset(&xi, 0, sizeof(xi));
993 tentry_fill_key(oh, ptent, *av, add, &type, &vmask, &xi);
998 if (xi.tablename[0] == '\0') {
999 xi.type = type;
1000 xi.vmask = vmask;
1001 strlcpy(xi.tablename, oh->ntlv.name,
1002 sizeof(xi.tablename));
1006 xi.tablename);
1007 table_do_create(oh, &xi);
1084 table_show_entry(&xi, ptent);
1120 table_do_lookup(ipfw_obj_header *oh, char *key, ipfw_xtable_info *xi,
1137 tentry_fill_key(oh, tent, key, 0, &type, &vmask, xi);
1156 ipfw_xtable_info xi;
1165 memset(&xi, 0, sizeof(xi));
1166 error = table_do_lookup(oh, key, &xi, &xtent);
1182 table_show_entry(&xi, &xtent);
1437 int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi)
1447 if (xi->tablename[0] == '\0')
1448 error = table_get_info(oh, xi);
1455 type = xi->type;
1456 tflags = xi->tflags;
1457 vmask = xi->vmask;