Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

47 append_range(struct ipt_natinfo *info, const struct nf_nat_range *range)
52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range));
54 info = realloc(info, size);
55 if (!info)
58 info->t.u.target_size = size;
59 info->mr.range[info->mr.rangesize] = *range;
60 info->mr.rangesize++;
62 return info;
67 parse_to(const char *orig_arg, int portok, struct ipt_natinfo *info)
117 /* Starts with a colon? No IP info...*/
120 return &(append_range(info, &range)->t);
148 return &(append_range(info, &range)->t);
154 struct ipt_natinfo *info = (void *)(*cb->target);
176 *cb->target = parse_to(cb->arg, portok, info);
179 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM;
184 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM;
187 info->mr.range[0].flags |= IP_NAT_RANGE_PERSISTENT;
215 const struct ipt_natinfo *info = (const void *)target;
219 for (i = 0; i < info->mr.rangesize; i++) {
220 print_range(&info->mr.range[i]);
221 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM)
223 if (info->mr.range[i].flags & IP_NAT_RANGE_PERSISTENT)
230 const struct ipt_natinfo *info = (const void *)target;
233 for (i = 0; i < info->mr.rangesize; i++) {
235 print_range(&info->mr.range[i]);
236 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM)
238 if (info->mr.range[i].flags & IP_NAT_RANGE_PERSISTENT)