summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2016-11-14 08:31:21 -0600
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-17 21:04:18 +0000
commite48b828987a5d89094b141be3912c54e0e0bd733 (patch)
tree11452f1d215fe7fd9be248f499ba317166fe2fda
parent7490a752814187ed03c0deca4d836b0dca09fb4b (diff)
Fix VPP-132: leave IPv4 addresses in network byte order when sending.
Change-Id: Ibae771e7cba0a3e834382f43d4bc07b457844b00 Signed-off-by: Matthew Smith <mgsmith@netgate.com>
-rw-r--r--vpp/vpp-api/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c
index b2b639a718c..da2d3bb1a6e 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;