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, net_random(), 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
82 off = *rover; in nf_nat_l4proto_unique_tuple()
89 *rover = off; in nf_nat_l4proto_unique_tuple()
/net/netfilter/ipvs/
Dip_vs_lblc.c111 int rover; /* rover for expire check */ member
274 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check()
289 tbl->rover = j; in ip_vs_lblc_full_check()
330 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire()
346 tbl->rover = j; in ip_vs_lblc_check_expire()
376 tbl->rover = 0; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c291 int rover; /* rover for expire check */ member
443 for (i=0, j=tbl->rover; i<IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check()
457 tbl->rover = j; in ip_vs_lblcr_full_check()
498 for (i=0, j=tbl->rover; i<IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire()
514 tbl->rover = j; in ip_vs_lblcr_check_expire()
543 tbl->rover = 0; in ip_vs_lblcr_init_svc()
/net/ipv4/
Dinet_connection_sock.c116 int remaining, rover, low, high; in inet_csk_get_port() local
121 smallest_rover = rover = net_random() % remaining + low; in inet_csk_get_port()
125 if (inet_is_reserved_local_port(rover)) in inet_csk_get_port()
127 head = &hashinfo->bhash[inet_bhashfn(net, rover, in inet_csk_get_port()
131 if (net_eq(ib_net(tb), net) && tb->port == rover) { in inet_csk_get_port()
140 smallest_rover = rover; in inet_csk_get_port()
148 snum = rover; in inet_csk_get_port()
157 if (++rover > high) in inet_csk_get_port()
158 rover = low; in inet_csk_get_port()
178 snum = rover; in inet_csk_get_port()
/net/sctp/
Dsocket.c5904 unsigned int rover; in sctp_get_port_local() local
5908 rover = net_random() % remaining + low; in sctp_get_port_local()
5911 rover++; in sctp_get_port_local()
5912 if ((rover < low) || (rover > high)) in sctp_get_port_local()
5913 rover = low; in sctp_get_port_local()
5914 if (inet_is_reserved_local_port(rover)) in sctp_get_port_local()
5916 index = sctp_phashfn(sock_net(sk), rover); in sctp_get_port_local()
5920 if ((pp->port == rover) && in sctp_get_port_local()
5937 snum = rover; in sctp_get_port_local()
/net/netlink/
Daf_netlink.c1191 static s32 rover = -4097; in netlink_autobind() local
1202 portid = rover--; in netlink_autobind()
1203 if (rover > -4097) in netlink_autobind()
1204 rover = -4097; in netlink_autobind()