Searched refs:snum (Results 1 – 10 of 10) sorted by relevance
/net/ipv6/ |
D | af_inet6.c | 282 unsigned short snum; in __inet6_bind() local 294 snum = ntohs(addr->sin6_port); in __inet6_bind() 295 if (snum && inet_is_local_unbindable_port(net, snum)) in __inet6_bind() 297 if (snum && snum < inet_prot_sock(net) && in __inet6_bind() 403 if (snum || !(inet->bind_address_no_port || in __inet6_bind() 405 if (sk->sk_prot->get_port(sk, snum)) { in __inet6_bind() 421 if (snum) in __inet6_bind()
|
D | udp_impl.h | 15 int udp_v6_get_port(struct sock *sk, unsigned short snum);
|
D | udp.c | 80 int udp_v6_get_port(struct sock *sk, unsigned short snum) in udp_v6_get_port() argument 83 ipv6_portaddr_hash(sock_net(sk), &in6addr_any, snum); in udp_v6_get_port() 89 return udp_lib_get_port(sk, snum, hash2_nulladdr); in udp_v6_get_port()
|
/net/ipv4/ |
D | udp.c | 226 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port() argument 234 if (!snum) { in udp_lib_get_port() 254 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port() 257 snum = first; in udp_lib_get_port() 264 if (low <= snum && snum <= high && in udp_lib_get_port() 265 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port() 266 !inet_is_local_reserved_port(net, snum)) in udp_lib_get_port() 268 snum += rand; in udp_lib_get_port() 269 } while (snum != first); in udp_lib_get_port() 275 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port() [all …]
|
D | af_inet.c | 463 unsigned short snum; in __inet_bind() local 496 snum = ntohs(addr->sin_port); in __inet_bind() 498 if (snum && inet_is_local_unbindable_port(net, snum)) in __inet_bind() 502 if (snum && snum < inet_prot_sock(net) && in __inet_bind() 526 if (snum || !(inet->bind_address_no_port || in __inet_bind() 528 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind() 542 if (snum) in __inet_bind()
|
D | udp_impl.h | 12 int udp_v4_get_port(struct sock *sk, unsigned short snum);
|
D | inet_hashtables.c | 64 const unsigned short snum, in inet_bind_bucket_create() argument 72 tb->port = snum; in inet_bind_bucket_create() 93 const unsigned short snum) in inet_bind_hash() argument 95 inet_sk(sk)->inet_num = snum; in inet_bind_hash()
|
D | ping.c | 408 unsigned short snum; in ping_bind() local 424 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind() 425 if (ping_get_port(sk, snum) != 0) { in ping_bind() 442 if (snum) in ping_bind()
|
D | inet_connection_sock.c | 286 int inet_csk_get_port(struct sock *sk, unsigned short snum) in inet_csk_get_port() argument 290 int ret = 1, port = snum; in inet_csk_get_port()
|
/net/sctp/ |
D | socket.c | 353 unsigned short snum; in sctp_do_bind() local 364 snum = ntohs(addr->v4.sin_port); in sctp_do_bind() 367 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind() 378 if (!snum) in sctp_do_bind() 379 snum = bp->port; in sctp_do_bind() 380 else if (snum != bp->port) { in sctp_do_bind() 382 "%d\n", __func__, snum, bp->port); in sctp_do_bind() 387 if (snum && inet_is_local_unbindable_port(net, snum)) in sctp_do_bind() 390 if (snum && snum < inet_prot_sock(net) && in sctp_do_bind() 404 addr->v4.sin_port = htons(snum); in sctp_do_bind() [all …]
|