mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
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>
This commit is contained in:
parent
96cd0d3d71
commit
e69c4e0f12
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue