Lines Matching full:snum

236  *  @snum:        port number to look up
240 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port() argument
248 if (!snum) { in udp_lib_get_port()
268 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
271 snum = first; in udp_lib_get_port()
273 * Iterate on all possible values of snum for this hash. in udp_lib_get_port()
278 if (low <= snum && snum <= high && in udp_lib_get_port()
279 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
280 !inet_is_local_reserved_port(net, snum)) in udp_lib_get_port()
282 snum += rand; in udp_lib_get_port()
283 } while (snum != first); in udp_lib_get_port()
289 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
293 unsigned int slot2 = udp_sk(sk)->udp_portaddr_hash ^ snum; in udp_lib_get_port()
302 exist = udp_lib_lport_inuse2(net, snum, hslot2, sk); in udp_lib_get_port()
305 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
314 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0)) in udp_lib_get_port()
318 inet_sk(sk)->inet_num = snum; in udp_lib_get_port()
319 udp_sk(sk)->udp_port_hash = snum; in udp_lib_get_port()
320 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
326 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
357 int udp_v4_get_port(struct sock *sk, unsigned short snum) in udp_v4_get_port() argument
360 ipv4_portaddr_hash(sock_net(sk), htonl(INADDR_ANY), snum); in udp_v4_get_port()
366 return udp_lib_get_port(sk, snum, hash2_nulladdr); in udp_v4_get_port()