]> git.ipfire.org Git - thirdparty/iproute2.git/commit
macsec: fix byte ordering on input/display of 'sci'
authorDavide Caratti <dcaratti@redhat.com>
Tue, 30 Aug 2016 11:23:14 +0000 (13:23 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Sep 2016 16:08:50 +0000 (09:08 -0700)
commit0330f49ea06eed134b51a6924faf64ec6b1bb3ed
tree66582a7484d90d960a1535344a9f1ab35694b4ec
parentd0baa1389f3a5d216f8f7085ae579c2e6e4bfcce
macsec: fix byte ordering on input/display of 'sci'

use get_be64() in place of get_u64() when parsing input 'sci' parameter,
so that 'sci' can be entered using network byte order regardless the
endianness of target system; use ntohll() when printing out 'sci'. While
at it, improve documentation of 'sci' in ip-link.8.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
ip/ipmacsec.c
man/man8/ip-link.8.in