Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

96 static void iprange_parse(struct xt_option_call *cb)
98 struct ipt_iprange_info *info = cb->data;
101 xtables_option_parse(cb);
102 switch (cb->entry->id) {
105 if (cb->invert)
107 iprange_parse_range(cb->arg, range, NFPROTO_IPV4, "--src-range");
113 if (cb->invert)
115 iprange_parse_range(cb->arg, range, NFPROTO_IPV4, "--dst-range");
122 static void iprange_mt_parse(struct xt_option_call *cb, uint8_t nfproto)
124 struct xt_iprange_mtinfo *info = cb->data;
126 xtables_option_parse(cb);
127 switch (cb->entry->id) {
129 iprange_parse_range(cb->arg, &info->src_min, nfproto,
132 if (cb->invert)
136 iprange_parse_range(cb->arg, &info->dst_min, nfproto,
139 if (cb->invert)
145 static void iprange_mt4_parse(struct xt_option_call *cb)
147 iprange_mt_parse(cb, NFPROTO_IPV4);
150 static void iprange_mt6_parse(struct xt_option_call *cb)
152 iprange_mt_parse(cb, NFPROTO_IPV6);
155 static void iprange_mt_check(struct xt_fcheck_call *cb)
157 if (cb->xflags == 0)