aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_api.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-11-20 11:03:10 +0100
committerDave Barach <openvpp@barachs.net>2018-11-20 12:40:06 +0000
commit8ee72514d392e1d16638656d5c4a6dc63d3d90cc (patch)
tree1f8028d1909691f66ad33829fcc332ab65f7980a /src/vnet/interface_api.c
parentf1cd92d8d9183dac3f70ceaf40efd8936da0a69a (diff)
Link speed sent as little endian across API
Change-Id: I03c991cbf13c6d3599bfb5a60b18dc8ec9390414 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet/interface_api.c')
-rw-r--r--src/vnet/interface_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c
index e4faeed76b0..d6c129025b1 100644
--- a/src/vnet/interface_api.c
+++ b/src/vnet/interface_api.c
@@ -202,7 +202,7 @@ send_sw_interface_details (vpe_api_main_t * am,
mp->link_up_down = (hi->flags & VNET_HW_INTERFACE_FLAG_LINK_UP) ? 1 : 0;
mp->link_duplex = ((hi->flags & VNET_HW_INTERFACE_FLAG_DUPLEX_MASK) >>
VNET_HW_INTERFACE_FLAG_DUPLEX_SHIFT);
- mp->link_speed = hi->link_speed;
+ mp->link_speed = ntohl (hi->link_speed);
mp->link_mtu = ntohs (hi->max_packet_bytes);
mp->mtu[VNET_MTU_L3] = ntohl (swif->mtu[VNET_MTU_L3]);
mp->mtu[VNET_MTU_IP4] = ntohl (swif->mtu[VNET_MTU_IP4]);