Lines Matching defs:range
14 /* Source NAT data consists of a multi-range, indicating where to map
42 append_range(struct ipt_natinfo *info, const struct ip_nat_range *range)
47 size = IPT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range));
54 info->mr.range[info->mr.rangesize] = *range;
64 struct ip_nat_range range;
68 memset(&range, 0, sizeof(range));
78 range.flags |= IP_NAT_RANGE_PROTO_SPECIFIED;
92 range.min.tcp.port
93 = range.max.tcp.port
105 "Port range `%s' funky\n", colon+1);
106 range.min.tcp.port = htons(port);
107 range.max.tcp.port = htons(maxport);
111 return &(append_range(info, &range)->t);
115 range.flags |= IP_NAT_RANGE_MAP_IPS;
127 range.min_ip = ip->s_addr;
133 range.max_ip = ip->s_addr;
135 range.max_ip = range.min_ip;
137 return &(append_range(info, &range)->t);
173 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM;
179 info->mr.range[0].flags |= IP_NAT_RANGE_PROTO_RANDOM;
229 print_range(&info->mr.range[i]);
231 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM)
245 print_range(&info->mr.range[i]);
247 if (info->mr.range[i].flags & IP_NAT_RANGE_PROTO_RANDOM)