Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

133 	struct ipt_policy_info *info = (void *)(*match)->data;
134 struct ipt_policy_elem *e = &info->pol[info->len];
143 if (info->flags & (IPT_POLICY_MATCH_IN|IPT_POLICY_MATCH_OUT))
150 info->flags |= parse_direction(argv[optind-1]);
157 info->flags |= parse_policy(argv[optind-1]);
160 if (info->flags & IPT_POLICY_MATCH_STRICT)
168 info->flags |= IPT_POLICY_MATCH_STRICT;
246 if (++info->len == IPT_POLICY_MAX_ELEM)
254 policy_info = info;
260 struct ipt_policy_info *info = policy_info;
264 if (info == NULL)
268 if (!(info->flags & (IPT_POLICY_MATCH_IN|IPT_POLICY_MATCH_OUT)))
272 if (info->flags & IPT_POLICY_MATCH_NONE) {
273 if (info->flags & IPT_POLICY_MATCH_STRICT)
277 if (info->len != 0)
281 info->len++; /* increase len by 1, no --next after last element */
283 if (!(info->flags & IPT_POLICY_MATCH_STRICT) && info->len > 1)
287 for (i = 0; i < info->len; i++) {
288 e = &info->pol[i];
290 if (info->flags & IPT_POLICY_MATCH_STRICT &&
374 static void print_flags(char *prefix, const struct ipt_policy_info *info)
376 if (info->flags & IPT_POLICY_MATCH_IN)
381 if (info->flags & IPT_POLICY_MATCH_NONE)
386 if (info->flags & IPT_POLICY_MATCH_STRICT)
394 const struct ipt_policy_info *info = (void *)match->data;
398 print_flags("", info);
399 for (i = 0; i < info->len; i++) {
400 if (info->len > 1)
402 print_entry("", &info->pol[i], numeric);
408 const struct ipt_policy_info *info = (void *)match->data;
411 print_flags("--", info);
412 for (i = 0; i < info->len; i++) {
413 print_entry("--", &info->pol[i], 0);
414 if (i + 1 < info->len)