diff options
author | 2016-03-13 02:22:06 +0100 | |
---|---|---|
committer | 2016-04-22 17:29:47 +0200 | |
commit | f1213b82771ce929c076339c24a777cfd59690e6 (patch) | |
tree | 3c74305e8848047d8ccd1228ee511d57cbf1b1a6 /vnet/vnet/vcgn/cnat_cli_handler.c | |
parent | 2b836cf4d1e4e59ca34229a9fdf49d79216da20e (diff) |
Add clib_memcpy macro based on DPDK rte_memcpy implementation
Change-Id: I22cb443c4bd0bf298abb6f06e8e4ca65a44a2854
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/vcgn/cnat_cli_handler.c')
-rw-r--r-- | vnet/vnet/vcgn/cnat_cli_handler.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vnet/vnet/vcgn/cnat_cli_handler.c b/vnet/vnet/vcgn/cnat_cli_handler.c index e0fb91bcc5d..46c8493501b 100644 --- a/vnet/vnet/vcgn/cnat_cli_handler.c +++ b/vnet/vnet/vcgn/cnat_cli_handler.c @@ -341,12 +341,12 @@ void cnat_nat44_handle_show_config(vlib_main_t *vm) memset(status_str, 0x00, sizeof(status_str)); switch(my_vrfmap->status) { - case S_WAO: memcpy(status_str, "S_WAO", 5); break; - case S_WA: memcpy(status_str, "S_WA", 4); break; - case S_WO: memcpy(status_str, "S_WO", 4); break; - case S_RUN: memcpy(status_str, "ONLINE", 6); break; - case S_DEL: memcpy(status_str, "S_DEL", 5); break; - default: memcpy(status_str, "Invalid state", 13); + case S_WAO: clib_memcpy(status_str, "S_WAO", 5); break; + case S_WA: clib_memcpy(status_str, "S_WA", 4); break; + case S_WO: clib_memcpy(status_str, "S_WO", 4); break; + case S_RUN: clib_memcpy(status_str, "ONLINE", 6); break; + case S_DEL: clib_memcpy(status_str, "S_DEL", 5); break; + default: clib_memcpy(status_str, "Invalid state", 13); } vlib_cli_output(vm, |