Fix VPP-132: leave IPv4 addresses in network byte order when sending. 16/3816/2
authorMatthew Smith <mgsmith@netgate.com>
Mon, 14 Nov 2016 14:31:21 +0000 (08:31 -0600)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 17 Nov 2016 21:04:18 +0000 (21:04 +0000)
Change-Id: Ibae771e7cba0a3e834382f43d4bc07b457844b00
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
vpp/vpp-api/api.c

index b2b639a..da2d3bb 100644 (file)
@@ -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;