summaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorlucien <lucien.xin@gmail.com>2015-11-12 13:07:07 +0800
committerDavid S. Miller <davem@davemloft.net>2015-11-15 18:27:27 -0500
commited5a377d87dc4c87fb3e1f7f698cba38cd893103 (patch)
treec8d2646871abf14f74cc47e6585583df6355f441 /net/ipv6/tcp_ipv6.c
parent52b4620294b772cdc56a9495bc0df1f81b389315 (diff)
downloadtalos-op-linux-ed5a377d87dc4c87fb3e1f7f698cba38cd893103.tar.gz
talos-op-linux-ed5a377d87dc4c87fb3e1f7f698cba38cd893103.zip
sctp: translate host order to network order when setting a hmacid
now sctp auth cannot work well when setting a hmacid manually, which is caused by that we didn't use the network order for hmacid, so fix it by adding the transformation in sctp_auth_ep_set_hmacs. even we set hmacid with the network order in userspace, it still can't work, because of this condition in sctp_auth_ep_set_hmacs(): if (id > SCTP_AUTH_HMAC_ID_MAX) return -EOPNOTSUPP; so this wasn't working before and thus it won't break compatibility. Fixes: 65b07e5d0d09 ("[SCTP]: API updates to suport SCTP-AUTH extensions.") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud