Lines Matching refs:snum
386 unsigned short snum; in sctp_do_bind() local
397 snum = ntohs(addr->v4.sin_port); in sctp_do_bind()
400 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind()
411 if (!snum) in sctp_do_bind()
412 snum = bp->port; in sctp_do_bind()
413 else if (snum != bp->port) { in sctp_do_bind()
415 "%d\n", __func__, snum, bp->port); in sctp_do_bind()
420 if (snum && snum < inet_prot_sock(net) && in sctp_do_bind()
434 addr->v4.sin_port = htons(snum); in sctp_do_bind()
7659 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
7666 unsigned short snum; in sctp_get_port_local() local
7669 snum = ntohs(addr->v4.sin_port); in sctp_get_port_local()
7671 pr_debug("%s: begins, snum:%d\n", __func__, snum); in sctp_get_port_local()
7675 if (snum == 0) { in sctp_get_port_local()
7712 snum = rover; in sctp_get_port_local()
7720 head = &sctp_port_hashtable[sctp_phashfn(sock_net(sk), snum)]; in sctp_get_port_local()
7723 if ((pp->port == snum) && net_eq(pp->net, sock_net(sk))) in sctp_get_port_local()
7774 if (!pp && !(pp = sctp_bucket_create(head, sock_net(sk), snum))) in sctp_get_port_local()
7796 inet_sk(sk)->inet_num = snum; in sctp_get_port_local()
7813 static int sctp_get_port(struct sock *sk, unsigned short snum) in sctp_get_port() argument
7820 addr.v4.sin_port = htons(snum); in sctp_get_port()
8011 struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum) in sctp_bucket_create() argument
8018 pp->port = snum; in sctp_bucket_create()