Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

96 	struct xt_policy_info *info = cb->data;
97 struct xt_policy_elem *e = &info->pol[info->len];
102 info->flags |= parse_direction(cb->arg);
105 info->flags |= parse_policy(cb->arg);
108 info->flags |= XT_POLICY_MATCH_STRICT;
166 if (++info->len == XT_POLICY_MAX_ELEM)
175 struct xt_policy_info *info = cb->data;
183 if (!(info->flags & (XT_POLICY_MATCH_IN | XT_POLICY_MATCH_OUT)))
187 if (info->flags & XT_POLICY_MATCH_NONE) {
188 if (info->flags & XT_POLICY_MATCH_STRICT)
192 if (info->len != 0)
196 info->len++; /* increase len by 1, no --next after last element */
202 if (!(info->flags & XT_POLICY_MATCH_STRICT) && info->len > 1)
207 for (i = 0; i < info->len; i++) {
208 e = &info->pol[i];
210 if (info->flags & XT_POLICY_MATCH_STRICT &&
307 static void print_flags(const char *prefix, const struct xt_policy_info *info)
309 if (info->flags & XT_POLICY_MATCH_IN)
314 if (info->flags & XT_POLICY_MATCH_NONE)
319 if (info->flags & XT_POLICY_MATCH_STRICT)
326 const struct xt_policy_info *info = (void *)match->data;
330 print_flags("", info);
331 for (i = 0; i < info->len; i++) {
332 if (info->len > 1)
334 print_entry("", &info->pol[i], numeric, NFPROTO_IPV4);
341 const struct xt_policy_info *info = (void *)match->data;
345 print_flags("", info);
346 for (i = 0; i < info->len; i++) {
347 if (info->len > 1)
349 print_entry("", &info->pol[i], numeric, NFPROTO_IPV6);
355 const struct xt_policy_info *info = (void *)match->data;
358 print_flags("--", info);
359 for (i = 0; i < info->len; i++) {
360 print_entry("--", &info->pol[i], false, NFPROTO_IPV4);
361 if (i + 1 < info->len)
368 const struct xt_policy_info *info = (void *)match->data;
371 print_flags("--", info);
372 for (i = 0; i < info->len; i++) {
373 print_entry("--", &info->pol[i], false, NFPROTO_IPV6);
374 if (i + 1 < info->len)