Fix set interface mac address API to be endian neutral 68/9168/2
authorJohn Lo <loj@cisco.com>
Tue, 31 Oct 2017 18:31:10 +0000 (14:31 -0400)
committerDave Barach <openvpp@barachs.net>
Tue, 31 Oct 2017 20:03:11 +0000 (20:03 +0000)
commit62fcc0ac6151b57b1177ac8b346341fc4dac3bb3
tree6c80cd59df8fafe9b1fcef87ee262e7c2b726213
parentca3b6f1b4116010b1acbbb29a945767cb5443914
Fix set interface mac address API to be endian neutral

Store and pass MAC address as 6 byte u8 array instead of u64 to
make MAC address handling in set interface MAC endian neutral.
The previous API handler only works for little endian.

Change-Id: Ie4ec33a840bc5122ab1f17e25977e58f3466253b
Signed-off-by: John Lo <loj@cisco.com>
src/vnet/interface.c
src/vnet/interface_api.c
src/vnet/interface_cli.c
src/vnet/interface_funcs.h