diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2008-09-15 20:29:49 (GMT) |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2008-10-01 15:34:16 (GMT) |
commit | e69c4e0f1210450841e40716894ba6a877b31d52 (patch) | |
tree | a259fb694a98913339fd6ad89a6a83321309df90 /net | |
parent | 96cd0d3d710e64c55e034b77052d7ac46f094759 (diff) | |
download | linux-fsl-qoriq-e69c4e0f1210450841e40716894ba6a877b31d52.tar.xz |
sctp: correctly save sctp_adaptation from parameter.
The INIT perameter carries the adapatation value in network-byte
order. We need to store it in host byte order as expected
by data types and the user API.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 99fe074..76726bc 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -2467,7 +2467,7 @@ do_addr_param: break; case SCTP_PARAM_ADAPTATION_LAYER_IND: - asoc->peer.adaptation_ind = param.aind->adaptation_ind; + asoc->peer.adaptation_ind = ntohl(param.aind->adaptation_ind); break; case SCTP_PARAM_SET_PRIMARY: |