diff options
Diffstat (limited to 'vpp-japi')
-rw-r--r-- | vpp-japi/japi/vppjni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-japi/japi/vppjni.c b/vpp-japi/japi/vppjni.c index 5747d9aa73e..6e4d6ee57c5 100644 --- a/vpp-japi/japi/vppjni.c +++ b/vpp-japi/japi/vppjni.c @@ -1556,7 +1556,7 @@ static void vl_api_ip_address_details_t_handler (vl_api_ip_address_details_t * m if (!jm->is_ipv6) { ipv4_address_t *address = 0; vec_add2(jm->ipv4_addresses, address, 1); - address->ip = *(u32*)mp->ip; + memcpy(&address->ip, mp->ip, 4); address->prefix_length = mp->prefix_length; } else { ipv6_address_t *address = 0; |