Lines Matching defs:info

54 	struct xt_set_info_target_v0 *info =
57 info->add_set.index =
58 info->del_set.index = IPSET_INVALID_ID;
64 struct xt_set_info_v0 *info, const char *what)
66 if (info->u.flags[0])
80 get_set_byname(optarg, (struct xt_set_info *)info);
81 parse_dirs_v0(argv[optind], info);
108 print_target_v0(const char *prefix, const struct xt_set_info_v0 *info)
113 if (info->index == IPSET_INVALID_ID)
115 get_set_byid(setname, info->index);
118 if (!info->u.flags[i])
122 info->u.flags[i] & IPSET_SRC ? "src" : "dst");
130 const struct xt_set_info_target_v0 *info = (const void *)target->data;
132 print_target_v0("add-set", &info->add_set);
133 print_target_v0("del-set", &info->del_set);
139 const struct xt_set_info_target_v0 *info = (const void *)target->data;
141 print_target_v0("--add-set", &info->add_set);
142 print_target_v0("--del-set", &info->del_set);
149 struct xt_set_info_target_v1 *info =
152 info->add_set.index =
153 info->del_set.index = IPSET_INVALID_ID;
163 parse_target(char **argv, int invert, struct xt_set_info *info,
166 if (info->dim)
179 get_set_byname(optarg, info);
180 parse_dirs(argv[optind], info);
205 print_target(const char *prefix, const struct xt_set_info *info)
210 if (info->index == IPSET_INVALID_ID)
212 get_set_byid(setname, info->index);
214 for (i = 1; i <= info->dim; i++) {
217 info->flags & (1 << i) ? "src" : "dst");
225 const struct xt_set_info_target_v1 *info = (const void *)target->data;
227 print_target("add-set", &info->add_set);
228 print_target("del-set", &info->del_set);
234 const struct xt_set_info_target_v1 *info = (const void *)target->data;
236 print_target("--add-set", &info->add_set);
237 print_target("--del-set", &info->del_set);
281 struct xt_set_info_target_v2 *info =
284 info->add_set.index =
285 info->del_set.index = IPSET_INVALID_ID;
286 info->timeout = UINT32_MAX;
326 const struct xt_set_info_target_v2 *info = (const void *)target->data;
328 print_target("add-set", &info->add_set);
329 if (info->flags & IPSET_FLAG_EXIST)
331 if (info->timeout != UINT32_MAX)
332 printf(" timeout %u", info->timeout);
333 print_target("del-set", &info->del_set);
339 const struct xt_set_info_target_v2 *info = (const void *)target->data;
341 print_target("--add-set", &info->add_set);
342 if (info->flags & IPSET_FLAG_EXIST)
344 if (info->timeout != UINT32_MAX)
345 printf(" --timeout %u", info->timeout);
346 print_target("--del-set", &info->del_set);