Lines Matching refs:info
38 append_range(struct ipt_natinfo *info, const struct ip_nat_range *range)
43 size = IPT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range));
45 info = realloc(info, size);
46 if (!info)
49 info->t.u.target_size = size;
50 info->mr.range[info->mr.rangesize] = *range;
51 info->mr.rangesize++;
53 return info;
58 parse_to(char *arg, int portok, struct ipt_natinfo *info)
105 /* Starts with a colon? No IP info...*/
107 return &(append_range(info, &range)->t);
133 return &(append_range(info, &range)->t);
143 struct ipt_natinfo *info = (void *)*target;
166 *target = parse_to(optarg, portok, info);
209 struct ipt_natinfo *info = (void *)target;
213 for (i = 0; i < info->mr.rangesize; i++) {
214 print_range(&info->mr.range[i]);
223 struct ipt_natinfo *info = (void *)target;
226 for (i = 0; i < info->mr.rangesize; i++) {
228 print_range(&info->mr.range[i]);