diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:10:03 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:45 -0500 |
commit | b488c7dd58f61e07b54e5d286c7b45c43dd52f1a (patch) | |
tree | 831da2d58f8f2eadaad340dd936074ad13fe4f97 /net/sctp/transport.c | |
parent | d55c41b115e74b30a3d1a61db806bd03bdd9dd6f (diff) |
[SCTP]: sctp_transport_{init,new}() 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/transport.c')
-rw-r--r-- | net/sctp/transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index bacd09448b8e..e1448addcd93 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
@@ -61,8 +61,8 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, | |||
61 | gfp_t gfp) | 61 | gfp_t gfp) |
62 | { | 62 | { |
63 | /* Copy in the address. */ | 63 | /* Copy in the address. */ |
64 | peer->ipaddr_h = *addr; | 64 | peer->ipaddr = *addr; |
65 | flip_to_n(&peer->ipaddr, &peer->ipaddr_h); | 65 | flip_to_h(&peer->ipaddr_h, &peer->ipaddr); |
66 | peer->af_specific = sctp_get_af_specific(addr->sa.sa_family); | 66 | peer->af_specific = sctp_get_af_specific(addr->sa.sa_family); |
67 | peer->asoc = NULL; | 67 | peer->asoc = NULL; |
68 | 68 | ||