Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: API cleanup
[vpp.git]
/
src
/
vpp
/
api
/
test_client.c
diff --git
a/src/vpp/api/test_client.c
b/src/vpp/api/test_client.c
index
f207bb0
..
3c54594
100644
(file)
--- a/
src/vpp/api/test_client.c
+++ b/
src/vpp/api/test_client.c
@@
-1206,8
+1206,7
@@
ip6_set_link_local_address (test_main_t * tm)
tmp[0] = clib_host_to_net_u64 (0xfe80000000000000ULL);
tmp[1] = clib_host_to_net_u64 (0x11ULL);
tmp[0] = clib_host_to_net_u64 (0xfe80000000000000ULL);
tmp[1] = clib_host_to_net_u64 (0x11ULL);
- clib_memcpy (mp->address, &tmp[0], 8);
- clib_memcpy (&mp->address[8], &tmp[1], 8);
+ ip6_address_encode ((ip6_address_encode *) & tmp, mp->address);
mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_IP6_SET_LINK_LOCAL_ADDRESS);
mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_IP6_SET_LINK_LOCAL_ADDRESS);