diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:05:43 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:33 -0500 |
commit | 7e1e4a2b9dcc63ac3328f786f9d98bde90c8fc6c (patch) | |
tree | f11e2136bfd2af23399b173ddb47ea8d005289fa /net/sctp/socket.c | |
parent | 5f242a13e8505e0f3efd3113da6e029f6e7dfa32 (diff) |
[SCTP]: Switch sctp_bind_addr_match() to net-endian.
Callers adjusted.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index e03ba9055eb1..d42953efa355 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -4635,11 +4635,9 @@ static long sctp_get_port_local(struct sock *sk, union sctp_addr *addr) | |||
4635 | { | 4635 | { |
4636 | struct sctp_bind_hashbucket *head; /* hash list */ | 4636 | struct sctp_bind_hashbucket *head; /* hash list */ |
4637 | struct sctp_bind_bucket *pp; /* hash list port iterator */ | 4637 | struct sctp_bind_bucket *pp; /* hash list port iterator */ |
4638 | union sctp_addr tmp; | ||
4639 | unsigned short snum; | 4638 | unsigned short snum; |
4640 | int ret; | 4639 | int ret; |
4641 | 4640 | ||
4642 | flip_to_h(&tmp, addr); | ||
4643 | snum = ntohs(addr->v4.sin_port); | 4641 | snum = ntohs(addr->v4.sin_port); |
4644 | 4642 | ||
4645 | SCTP_DEBUG_PRINTK("sctp_get_port() begins, snum=%d\n", snum); | 4643 | SCTP_DEBUG_PRINTK("sctp_get_port() begins, snum=%d\n", snum); |
@@ -4737,7 +4735,7 @@ pp_found: | |||
4737 | if (reuse && sk2->sk_reuse) | 4735 | if (reuse && sk2->sk_reuse) |
4738 | continue; | 4736 | continue; |
4739 | 4737 | ||
4740 | if (sctp_bind_addr_match(&ep2->base.bind_addr, &tmp, | 4738 | if (sctp_bind_addr_match(&ep2->base.bind_addr, addr, |
4741 | sctp_sk(sk))) { | 4739 | sctp_sk(sk))) { |
4742 | ret = (long)sk2; | 4740 | ret = (long)sk2; |
4743 | goto fail_unlock; | 4741 | goto fail_unlock; |