Home
last modified time | relevance | path

Searched refs:range_size (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/net/ipv4/netfilter/
Dip_nat_proto_tcp.c36 unsigned int range_size, min, i; in tcp_unique_tuple() local
54 range_size = 511 - min + 1; in tcp_unique_tuple()
57 range_size = 1023 - min + 1; in tcp_unique_tuple()
61 range_size = 65535 - 1024 + 1; in tcp_unique_tuple()
65 range_size = ntohs(range->max.tcp.port) - min + 1; in tcp_unique_tuple()
68 for (i = 0; i < range_size; i++, port++) { in tcp_unique_tuple()
69 *portptr = htons(min + port % range_size); in tcp_unique_tuple()
Dip_nat_proto_udp.c37 unsigned int range_size, min, i; in udp_unique_tuple() local
54 range_size = 511 - min + 1; in udp_unique_tuple()
57 range_size = 1023 - min + 1; in udp_unique_tuple()
61 range_size = 65535 - 1024 + 1; in udp_unique_tuple()
65 range_size = ntohs(range->max.udp.port) - min + 1; in udp_unique_tuple()
68 for (i = 0; i < range_size; i++, port++) { in udp_unique_tuple()
69 *portptr = htons(min + port % range_size); in udp_unique_tuple()
Dip_nat_proto_icmp.c29 unsigned int range_size; in icmp_unique_tuple() local
32 range_size = ntohs(range->max.icmp.id) - ntohs(range->min.icmp.id) + 1; in icmp_unique_tuple()
35 range_size = 0xFFFF; in icmp_unique_tuple()
37 for (i = 0; i < range_size; i++, id++) { in icmp_unique_tuple()
39 (id % range_size)); in icmp_unique_tuple()