aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/bind_addr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:11:13 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:48 -0800
commitdd86d136f9feb72c52a5b07707affe80edbc8dda (patch)
tree3ca8c38af8d87d76d2ad3fa239a7d9984f327bec /net/sctp/bind_addr.c
parent5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d (diff)
downloadkernel_goldelico_gta04-dd86d136f9feb72c52a5b07707affe80edbc8dda.zip
kernel_goldelico_gta04-dd86d136f9feb72c52a5b07707affe80edbc8dda.tar.gz
kernel_goldelico_gta04-dd86d136f9feb72c52a5b07707affe80edbc8dda.tar.bz2
[SCTP]: Switch ->from_addr_param() to net-endian.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/bind_addr.c')
-rw-r--r--net/sctp/bind_addr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index eb3a5e2..fd0f812 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -264,7 +264,6 @@ int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list,
int retval = 0;
int len;
struct sctp_af *af;
- union sctp_addr tmp;
/* Convert the raw address to standard address format */
while (addrs_len) {
@@ -278,9 +277,8 @@ int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list,
break;
}
- af->from_addr_param(&addr, rawaddr, port, 0);
- flip_to_n(&tmp, &addr);
- retval = sctp_add_bind_addr(bp, &tmp, 1, gfp);
+ af->from_addr_param(&addr, rawaddr, htons(port), 0);
+ retval = sctp_add_bind_addr(bp, &addr, 1, gfp);
if (retval) {
/* Can't finish building the list, clean up. */
sctp_bind_addr_clean(bp);