aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:12:41 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:26:52 -0500
commitd3f7a54a295f2ffc9033b425c6538a7e9d7fbe8a (patch)
treea6f32788e62edc9e29194684334e41db50119f1c /net/sctp/protocol.c
parent6a1e5f335461567f593e88b218f1c06817cbd323 (diff)
[SCTP]: ->get_saddr() switched 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/protocol.c')
-rw-r--r--net/sctp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 87d36f440d1..5b8b7f3598e 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -539,7 +539,7 @@ static void sctp_v4_get_saddr(struct sctp_association *asoc,
539 539
540 if (rt) { 540 if (rt) {
541 saddr->v4.sin_family = AF_INET; 541 saddr->v4.sin_family = AF_INET;
542 saddr->v4.sin_port = asoc->base.bind_addr.port; 542 saddr->v4.sin_port = htons(asoc->base.bind_addr.port);
543 saddr->v4.sin_addr.s_addr = rt->rt_src; 543 saddr->v4.sin_addr.s_addr = rt->rt_src;
544 } 544 }
545} 545}