提交 e69c4e0f 编写于 作者: V Vlad Yasevich

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: NVlad Yasevich <vladislav.yasevich@hp.com>
上级 96cd0d3d
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册