diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:09:40 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:44 -0500 |
commit | d55c41b115e74b30a3d1a61db806bd03bdd9dd6f (patch) | |
tree | 24591dcdbcd8b3c84599b64e6c01bd5a16974473 /net/sctp/sm_make_chunk.c | |
parent | 9b1dfad011d409bc56476a81810342751645ee54 (diff) |
[SCTP]: Switch ->from_skb() to net-endian.
All instances switched, callers updated.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 59536368f79a..632a1159610e 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -1227,7 +1227,6 @@ struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, | |||
1227 | struct sk_buff *skb; | 1227 | struct sk_buff *skb; |
1228 | sctp_scope_t scope; | 1228 | sctp_scope_t scope; |
1229 | struct sctp_af *af; | 1229 | struct sctp_af *af; |
1230 | union sctp_addr tmp; | ||
1231 | 1230 | ||
1232 | /* Create the bare association. */ | 1231 | /* Create the bare association. */ |
1233 | scope = sctp_scope(sctp_source(chunk)); | 1232 | scope = sctp_scope(sctp_source(chunk)); |
@@ -1240,8 +1239,7 @@ struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, | |||
1240 | af = sctp_get_af_specific(ipver2af(skb->nh.iph->version)); | 1239 | af = sctp_get_af_specific(ipver2af(skb->nh.iph->version)); |
1241 | if (unlikely(!af)) | 1240 | if (unlikely(!af)) |
1242 | goto fail; | 1241 | goto fail; |
1243 | af->from_skb(&tmp, skb, 1); | 1242 | af->from_skb(&asoc->c.peer_addr, skb, 1); |
1244 | flip_to_n(&asoc->c.peer_addr, &tmp); | ||
1245 | nodata: | 1243 | nodata: |
1246 | return asoc; | 1244 | return asoc; |
1247 | 1245 | ||