Lines Matching refs:snum
368 unsigned short snum; in sctp_do_bind() local
379 snum = ntohs(addr->v4.sin_port); in sctp_do_bind()
382 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind()
393 if (!snum) in sctp_do_bind()
394 snum = bp->port; in sctp_do_bind()
395 else if (snum != bp->port) { in sctp_do_bind()
397 "%d\n", __func__, snum, bp->port); in sctp_do_bind()
402 if (snum && inet_port_requires_bind_service(net, snum) && in sctp_do_bind()
416 addr->v4.sin_port = htons(snum); in sctp_do_bind()
8046 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
8056 unsigned short snum; in sctp_get_port_local() local
8059 snum = ntohs(addr->v4.sin_port); in sctp_get_port_local()
8061 pr_debug("%s: begins, snum:%d\n", __func__, snum); in sctp_get_port_local()
8063 if (snum == 0) { in sctp_get_port_local()
8100 snum = rover; in sctp_get_port_local()
8108 head = &sctp_port_hashtable[sctp_phashfn(net, snum)]; in sctp_get_port_local()
8111 if ((pp->port == snum) && net_eq(pp->net, net)) in sctp_get_port_local()
8167 if (!pp && !(pp = sctp_bucket_create(head, net, snum))) in sctp_get_port_local()
8202 inet_sk(sk)->inet_num = snum; in sctp_get_port_local()
8216 static int sctp_get_port(struct sock *sk, unsigned short snum) in sctp_get_port() argument
8223 addr.v4.sin_port = htons(snum); in sctp_get_port()
8413 struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum) in sctp_bucket_create() argument
8420 pp->port = snum; in sctp_bucket_create()