Lines Matching defs:range
38 const struct nf_nat_range *range,
52 /* If no range specified... */
53 if (!(range->flags & IP_NAT_RANGE_PROTO_SPECIFIED)) {
72 min = ntohs(range->min.all);
73 range_size = ntohs(range->max.all) - min + 1;
76 if (range->flags & IP_NAT_RANGE_PROTO_RANDOM)
88 if (!(range->flags & IP_NAT_RANGE_PROTO_RANDOM))
98 const struct nf_nat_range *range)
100 NLA_PUT_BE16(skb, CTA_PROTONAT_PORT_MIN, range->min.all);
101 NLA_PUT_BE16(skb, CTA_PROTONAT_PORT_MAX, range->max.all);
110 struct nf_nat_range *range)
113 range->min.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MIN]);
114 range->max.all = range->min.tcp.port;
115 range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED;
118 range->max.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MAX]);
119 range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED;