• Home
  • Raw
  • Download

Lines Matching refs:range

47 append_range(struct ipt_natinfo *info, const struct nf_nat_range *range)  in append_range()  argument
52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range)); in append_range()
59 info->mr.range[info->mr.rangesize] = *range; in append_range()
69 struct nf_nat_range range; in parse_to() local
76 memset(&range, 0, sizeof(range)); in parse_to()
86 range.flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in parse_to()
100 range.min.tcp.port in parse_to()
101 = range.max.tcp.port in parse_to()
114 range.min.tcp.port = htons(port); in parse_to()
115 range.max.tcp.port = htons(maxport); in parse_to()
120 return &(append_range(info, &range)->t); in parse_to()
125 range.flags |= IP_NAT_RANGE_MAP_IPS; in parse_to()
137 range.min_ip = ip->s_addr; in parse_to()
143 range.max_ip = ip->s_addr; in parse_to()
145 range.max_ip = range.min_ip; in parse_to()
148 return &(append_range(info, &range)->t); in parse_to()
179 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM; in SNAT_parse()
184 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM; in SNAT_parse()
187 info->mr.range[0].flags |= IP_NAT_RANGE_PERSISTENT; in SNAT_parse()
220 print_range(&info->mr.range[i]); in SNAT_print()
221 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM) in SNAT_print()
223 if (info->mr.range[i].flags & IP_NAT_RANGE_PERSISTENT) in SNAT_print()
235 print_range(&info->mr.range[i]); in SNAT_save()
236 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM) in SNAT_save()
238 if (info->mr.range[i].flags & IP_NAT_RANGE_PERSISTENT) in SNAT_save()