Lines Matching full:info
98 struct ipt_iprange_info *info = cb->data; in iprange_parse() local
104 info->flags |= IPRANGE_SRC; in iprange_parse()
106 info->flags |= IPRANGE_SRC_INV; in iprange_parse()
108 info->src.min_ip = range[0].ip; in iprange_parse()
109 info->src.max_ip = range[1].ip; in iprange_parse()
112 info->flags |= IPRANGE_DST; in iprange_parse()
114 info->flags |= IPRANGE_DST_INV; in iprange_parse()
116 info->dst.min_ip = range[0].ip; in iprange_parse()
117 info->dst.max_ip = range[1].ip; in iprange_parse()
124 struct xt_iprange_mtinfo *info = cb->data; in iprange_mt_parse() local
129 iprange_parse_range(cb->arg, &info->src_min, nfproto, in iprange_mt_parse()
131 info->flags |= IPRANGE_SRC; in iprange_mt_parse()
133 info->flags |= IPRANGE_SRC_INV; in iprange_mt_parse()
136 iprange_parse_range(cb->arg, &info->dst_min, nfproto, in iprange_mt_parse()
138 info->flags |= IPRANGE_DST; in iprange_mt_parse()
140 info->flags |= IPRANGE_DST_INV; in iprange_mt_parse()
177 const struct ipt_iprange_info *info = (const void *)match->data; in iprange_print() local
179 if (info->flags & IPRANGE_SRC) { in iprange_print()
181 if (info->flags & IPRANGE_SRC_INV) in iprange_print()
183 print_iprange(&info->src); in iprange_print()
185 if (info->flags & IPRANGE_DST) { in iprange_print()
187 if (info->flags & IPRANGE_DST_INV) in iprange_print()
189 print_iprange(&info->dst); in iprange_print()
197 const struct xt_iprange_mtinfo *info = (const void *)match->data; in iprange_mt4_print() local
199 if (info->flags & IPRANGE_SRC) { in iprange_mt4_print()
201 if (info->flags & IPRANGE_SRC_INV) in iprange_mt4_print()
207 printf(" %s", xtables_ipaddr_to_numeric(&info->src_min.in)); in iprange_mt4_print()
208 printf("-%s", xtables_ipaddr_to_numeric(&info->src_max.in)); in iprange_mt4_print()
210 if (info->flags & IPRANGE_DST) { in iprange_mt4_print()
212 if (info->flags & IPRANGE_DST_INV) in iprange_mt4_print()
214 printf(" %s", xtables_ipaddr_to_numeric(&info->dst_min.in)); in iprange_mt4_print()
215 printf("-%s", xtables_ipaddr_to_numeric(&info->dst_max.in)); in iprange_mt4_print()
223 const struct xt_iprange_mtinfo *info = (const void *)match->data; in iprange_mt6_print() local
225 if (info->flags & IPRANGE_SRC) { in iprange_mt6_print()
227 if (info->flags & IPRANGE_SRC_INV) in iprange_mt6_print()
233 printf(" %s", xtables_ip6addr_to_numeric(&info->src_min.in6)); in iprange_mt6_print()
234 printf("-%s", xtables_ip6addr_to_numeric(&info->src_max.in6)); in iprange_mt6_print()
236 if (info->flags & IPRANGE_DST) { in iprange_mt6_print()
238 if (info->flags & IPRANGE_DST_INV) in iprange_mt6_print()
240 printf(" %s", xtables_ip6addr_to_numeric(&info->dst_min.in6)); in iprange_mt6_print()
241 printf("-%s", xtables_ip6addr_to_numeric(&info->dst_max.in6)); in iprange_mt6_print()
247 const struct ipt_iprange_info *info = (const void *)match->data; in iprange_save() local
249 if (info->flags & IPRANGE_SRC) { in iprange_save()
250 if (info->flags & IPRANGE_SRC_INV) in iprange_save()
253 print_iprange(&info->src); in iprange_save()
255 if (info->flags & IPRANGE_DST) { in iprange_save()
256 if (info->flags & IPRANGE_DST_INV) in iprange_save()
259 print_iprange(&info->dst); in iprange_save()
265 const struct xt_iprange_mtinfo *info = (const void *)match->data; in iprange_mt4_save() local
267 if (info->flags & IPRANGE_SRC) { in iprange_mt4_save()
268 if (info->flags & IPRANGE_SRC_INV) in iprange_mt4_save()
270 printf(" --src-range %s", xtables_ipaddr_to_numeric(&info->src_min.in)); in iprange_mt4_save()
271 printf("-%s", xtables_ipaddr_to_numeric(&info->src_max.in)); in iprange_mt4_save()
273 if (info->flags & IPRANGE_DST) { in iprange_mt4_save()
274 if (info->flags & IPRANGE_DST_INV) in iprange_mt4_save()
276 printf(" --dst-range %s", xtables_ipaddr_to_numeric(&info->dst_min.in)); in iprange_mt4_save()
277 printf("-%s", xtables_ipaddr_to_numeric(&info->dst_max.in)); in iprange_mt4_save()
283 const struct xt_iprange_mtinfo *info = (const void *)match->data; in iprange_mt6_save() local
285 if (info->flags & IPRANGE_SRC) { in iprange_mt6_save()
286 if (info->flags & IPRANGE_SRC_INV) in iprange_mt6_save()
288 printf(" --src-range %s", xtables_ip6addr_to_numeric(&info->src_min.in6)); in iprange_mt6_save()
289 printf("-%s", xtables_ip6addr_to_numeric(&info->src_max.in6)); in iprange_mt6_save()
291 if (info->flags & IPRANGE_DST) { in iprange_mt6_save()
292 if (info->flags & IPRANGE_DST_INV) in iprange_mt6_save()
294 printf(" --dst-range %s", xtables_ip6addr_to_numeric(&info->dst_min.in6)); in iprange_mt6_save()
295 printf("-%s", xtables_ip6addr_to_numeric(&info->dst_max.in6)); in iprange_mt6_save()