Skip to content

Commit

Permalink
sctp: correctly save sctp_adaptation from parameter.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vlad Yasevich committed Oct 1, 2008
1 parent 96cd0d3 commit e69c4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@ static int sctp_process_param(struct sctp_association *asoc,
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:
Expand Down

0 comments on commit e69c4e0

Please sign in to comment.