Lines Matching refs:info
173 struct ip6t_policy_info *info = (void *)(*match)->data;
174 struct ip6t_policy_elem *e = &info->pol[info->len];
183 if (info->flags & (IP6T_POLICY_MATCH_IN|IP6T_POLICY_MATCH_OUT))
190 info->flags |= parse_direction(argv[optind-1]);
197 info->flags |= parse_policy(argv[optind-1]);
200 if (info->flags & IP6T_POLICY_MATCH_STRICT)
208 info->flags |= IP6T_POLICY_MATCH_STRICT;
286 if (++info->len == IP6T_POLICY_MAX_ELEM)
294 policy_info = info;
300 struct ip6t_policy_info *info = policy_info;
304 if (info == NULL)
308 if (!(info->flags & (IP6T_POLICY_MATCH_IN|IP6T_POLICY_MATCH_OUT)))
312 if (info->flags & IP6T_POLICY_MATCH_NONE) {
313 if (info->flags & IP6T_POLICY_MATCH_STRICT)
317 if (info->len != 0)
321 info->len++; /* increase len by 1, no --next after last element */
323 if (!(info->flags & IP6T_POLICY_MATCH_STRICT) && info->len > 1)
327 for (i = 0; i < info->len; i++) {
328 e = &info->pol[i];
330 if (info->flags & IP6T_POLICY_MATCH_STRICT &&
414 static void print_flags(char *prefix, const struct ip6t_policy_info *info)
416 if (info->flags & IP6T_POLICY_MATCH_IN)
421 if (info->flags & IP6T_POLICY_MATCH_NONE)
426 if (info->flags & IP6T_POLICY_MATCH_STRICT)
434 const struct ip6t_policy_info *info = (void *)match->data;
438 print_flags("", info);
439 for (i = 0; i < info->len; i++) {
440 if (info->len > 1)
442 print_entry("", &info->pol[i], numeric);
450 const struct ip6t_policy_info *info = (void *)match->data;
453 print_flags("--", info);
454 for (i = 0; i < info->len; i++) {
455 print_entry("--", &info->pol[i], 0);
456 if (i + 1 < info->len)