summaryrefslogtreecommitdiff
path: root/lib/route/link/macsec.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-12-15 14:41:54 +0100
committerThomas Haller <thaller@redhat.com>2016-12-15 19:41:19 +0100
commit729232bec2396e1fa3f6cf8e19d06b109e265526 (patch)
treeffb2eab5e9c6fc4900566ed113a695ca9b16f65f /lib/route/link/macsec.c
parent02cccc69bcca9148fda5c488784a6bd3c23bf1b4 (diff)
downloadlibnl-729232bec2396e1fa3f6cf8e19d06b109e265526.tar.gz
Revert "macsec: fix endianness of 'sci' parameter"
The commit changed the API from libnl 3.2.28: restore the old behavior. This reverts commit cd758fbfee07768ff200f46d7090fa8d0e6b300f. Signed-off-by: Beniamino Galvani <bgalvani@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route/link/macsec.c')
-rw-r--r--lib/route/link/macsec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/link/macsec.c b/lib/route/link/macsec.c
index 186e8d12..eccfbfa3 100644
--- a/lib/route/link/macsec.c
+++ b/lib/route/link/macsec.c
@@ -104,7 +104,7 @@ static int macsec_parse(struct rtnl_link *link, struct nlattr *data,
info = link->l_info;
if (tb[IFLA_MACSEC_SCI]) {
- info->sci = ntohll(nla_get_u64(tb[IFLA_MACSEC_SCI]));
+ info->sci = nla_get_u64(tb[IFLA_MACSEC_SCI]);
info->ce_mask |= MACSEC_ATTR_SCI;
}
@@ -277,7 +277,7 @@ static int macsec_put_attrs(struct nl_msg *msg, struct rtnl_link *link)
return -NLE_MSGSIZE;
if (info->ce_mask & MACSEC_ATTR_SCI)
- NLA_PUT_U64(msg, IFLA_MACSEC_SCI, htonll(info->sci));
+ NLA_PUT_U64(msg, IFLA_MACSEC_SCI, info->sci);
else if (info->ce_mask & MACSEC_ATTR_PORT)
NLA_PUT_U16(msg, IFLA_MACSEC_PORT, htons(info->port));