diff options
author | Thomas Haller <thaller@redhat.com> | 2016-12-15 18:23:26 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-12-15 18:41:19 (GMT) |
commit | 36777bae9aa259b123841b58c090076905e7797a (patch) | |
tree | 56dc9ac232a3e00947f15f5e17e659c6f44644c2 /lib | |
parent | 63088d1fef1c7ffc32c2e85f20ab866d401b14f0 (diff) | |
download | libnl-36777bae9aa259b123841b58c090076905e7797a.zip libnl-36777bae9aa259b123841b58c090076905e7797a.tar.gz libnl-36777bae9aa259b123841b58c090076905e7797a.tar.bz2 |
macsec: fix endianness of sci during dump()
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/link/macsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/link/macsec.c b/lib/route/link/macsec.c index d177236..2b7e58e 100644 --- a/lib/route/link/macsec.c +++ b/lib/route/link/macsec.c @@ -261,7 +261,7 @@ static void macsec_dump_line(struct rtnl_link *link, struct nl_dump_params *p) struct macsec_info *info = link->l_info; char tmp[128]; - nl_dump(p, "sci %016llx <%s>", info->sci, flags_str(tmp, sizeof(tmp), info)); + nl_dump(p, "sci %016llx <%s>", ntohll(info->sci), flags_str(tmp, sizeof(tmp), info)); } static void macsec_dump_details(struct rtnl_link *link, struct nl_dump_params *p) @@ -270,7 +270,7 @@ static void macsec_dump_details(struct rtnl_link *link, struct nl_dump_params *p char tmp[128]; nl_dump(p, " sci %016llx protect %s encoding_sa %d encrypt %s send_sci %s validate %s %s\n", - info->sci, values_on_off[info->protect], info->encoding_sa, values_on_off[info->encrypt], values_on_off[info->send_sci], + ntohll(info->sci), values_on_off[info->protect], info->encoding_sa, values_on_off[info->encrypt], values_on_off[info->send_sci], VALIDATE_STR[info->validate], replay_protect_str(tmp, info->replay_protect, info->window)); nl_dump(p, " cipher suite: %016llx, icv_len %d\n", |