Home
last modified time | relevance | path

Searched refs:rover (Results 1 – 7 of 7) sorted by relevance

/net/rds/
Dbind.c114 u16 rover, last; in rds_add_bound() local
117 rover = be16_to_cpu(*port); in rds_add_bound()
118 last = rover; in rds_add_bound()
120 rover = max_t(u16, prandom_u32(), 2); in rds_add_bound()
121 last = rover - 1; in rds_add_bound()
127 if (rover == 0) in rds_add_bound()
128 rover++; in rds_add_bound()
129 if (!rds_bind_lookup(addr, cpu_to_be16(rover), rs)) { in rds_add_bound()
136 } while (rover++ != last); in rds_add_bound()
/net/netfilter/
Dnf_nat_proto_common.c42 u16 *rover) in nf_nat_l4proto_unique_tuple() argument
84 off = *rover; in nf_nat_l4proto_unique_tuple()
92 *rover = off; in nf_nat_l4proto_unique_tuple()
/net/netfilter/ipvs/
Dip_vs_lblc.c111 int rover; /* rover for expire check */ member
268 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check()
283 tbl->rover = j; in ip_vs_lblc_full_check()
324 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire()
340 tbl->rover = j; in ip_vs_lblc_check_expire()
370 tbl->rover = 0; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c281 int rover; /* rover for expire check */ member
433 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check()
447 tbl->rover = j; in ip_vs_lblcr_full_check()
488 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire()
504 tbl->rover = j; in ip_vs_lblcr_check_expire()
533 tbl->rover = 0; in ip_vs_lblcr_init_svc()
/net/ipv4/
Dinet_connection_sock.c104 int remaining, rover, low, high; in inet_csk_get_port() local
109 smallest_rover = rover = prandom_u32() % remaining + low; in inet_csk_get_port()
113 if (inet_is_local_reserved_port(net, rover)) in inet_csk_get_port()
115 head = &hashinfo->bhash[inet_bhashfn(net, rover, in inet_csk_get_port()
119 if (net_eq(ib_net(tb), net) && tb->port == rover) { in inet_csk_get_port()
128 smallest_rover = rover; in inet_csk_get_port()
136 snum = rover; in inet_csk_get_port()
145 if (++rover > high) in inet_csk_get_port()
146 rover = low; in inet_csk_get_port()
166 snum = rover; in inet_csk_get_port()
/net/sctp/
Dsocket.c6211 unsigned int rover; in sctp_get_port_local() local
6216 rover = prandom_u32() % remaining + low; in sctp_get_port_local()
6219 rover++; in sctp_get_port_local()
6220 if ((rover < low) || (rover > high)) in sctp_get_port_local()
6221 rover = low; in sctp_get_port_local()
6222 if (inet_is_local_reserved_port(net, rover)) in sctp_get_port_local()
6224 index = sctp_phashfn(sock_net(sk), rover); in sctp_get_port_local()
6228 if ((pp->port == rover) && in sctp_get_port_local()
6245 snum = rover; in sctp_get_port_local()
/net/netlink/
Daf_netlink.c733 static s32 rover = -4097; in netlink_autobind() local
741 portid = rover--; in netlink_autobind()
742 if (rover > -4097) in netlink_autobind()
743 rover = -4097; in netlink_autobind()