Lines Matching defs:range
404 /* We added 8 bytes of day range at the end */
442 struct ip_nat_range *range = (struct ip_nat_range *) &mr->range[0];
445 struct nf_nat_range *range = (struct nf_nat_range *) &mr->range[0];
449 nat->ipaddr.s_addr = range->min_ip;
453 nat->ports[0] = range->min.tcp.port;
454 nat->ports[1] = range->max.tcp.port;
459 nat->ports[0] = range->min.udp.port;
460 nat->ports[1] = range->max.udp.port;
708 /* We added 8 bytes of day range at the end */
754 struct ip_nat_range *range = (struct ip_nat_range *) &mr->range[0];
757 struct nf_nat_range *range = (struct nf_nat_range *) &mr->range[0];
761 if (range->min_ip != nat->ipaddr.s_addr)
766 if (range->min.tcp.port != nat->ports[0] ||
767 range->max.tcp.port != nat->ports[1])
773 if (range->min.udp.port != nat->ports[0] ||
774 range->max.udp.port != nat->ports[1])
1196 struct ip_nat_range *range = (struct ip_nat_range *) &mr->range[0];
1199 struct nf_nat_range *range = (struct nf_nat_range *) &mr->range[0];
1206 range->min_ip = range->max_ip = nat->ipaddr.s_addr;
1207 range->flags |= IP_NAT_RANGE_MAP_IPS;
1212 range->min.tcp.port = nat->ports[0];
1213 range->max.tcp.port = nat->ports[1];
1214 range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED;
1219 range->min.udp.port = nat->ports[0];
1220 range->max.udp.port = nat->ports[1];
1221 range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED;