From: Matthew Smith Date: Mon, 14 Nov 2016 14:31:21 +0000 (-0600) Subject: Fix VPP-132: leave IPv4 addresses in network byte order when sending. X-Git-Tag: odp_vpp~1075 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e48b828987a5d89094b141be3912c54e0e0bd733;p=odp4vpp.git Fix VPP-132: leave IPv4 addresses in network byte order when sending. Change-Id: Ibae771e7cba0a3e834382f43d4bc07b457844b00 Signed-off-by: Matthew Smith --- diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index b2b639a7..da2d3bb1 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -4329,7 +4329,7 @@ send_ip_address_details (vpe_api_main_t * am, else { u32 *tp = (u32 *) mp->ip; - *tp = ntohl (*(u32 *) ip); + *tp = *(u32 *) ip; } mp->prefix_length = prefix_length; mp->context = context;