Lines Matching defs:snum
383 unsigned short snum;
394 snum = ntohs(addr->v4.sin_port);
397 __func__, sk, &addr->sa, bp->port, snum, len);
408 if (!snum)
409 snum = bp->port;
410 else if (snum != bp->port) {
412 "%d\n", __func__, snum, bp->port);
417 if (snum && inet_port_requires_bind_service(net, snum) &&
431 addr->v4.sin_port = htons(snum);
8327 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
8337 unsigned short snum;
8340 snum = ntohs(addr->v4.sin_port);
8342 pr_debug("%s: begins, snum:%d\n", __func__, snum);
8344 if (snum == 0) {
8381 snum = rover;
8386 * to the port number (snum) - we detect that with the
8389 head = &sctp_port_hashtable[sctp_phashfn(net, snum)];
8392 if ((pp->port == snum) && net_eq(pp->net, net))
8451 if (!pp && !(pp = sctp_bucket_create(head, net, snum)))
8486 inet_sk(sk)->inet_num = snum;
8497 /* Assign a 'snum' port to the socket. If snum == 0, an ephemeral
8500 static int sctp_get_port(struct sock *sk, unsigned short snum)
8507 addr.v4.sin_port = htons(snum);
8693 struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum)
8700 pp->port = snum;