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/ipsec/esp_encrypt.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/ipsec/esp_encrypt.c')
-rw-r--r-- | vnet/vnet/ipsec/esp_encrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/ipsec/esp_encrypt.c b/vnet/vnet/ipsec/esp_encrypt.c index 68add4c3d57..7194399f803 100644 --- a/vnet/vnet/ipsec/esp_encrypt.c +++ b/vnet/vnet/ipsec/esp_encrypt.c @@ -303,7 +303,7 @@ esp_encrypt_node_fn (vlib_main_t * vm, u8 iv[16]; RAND_bytes(iv, sizeof(iv)); - memcpy((u8 *) vlib_buffer_get_current (o_b0) + ip_hdr_size + + clib_memcpy((u8 *) vlib_buffer_get_current (o_b0) + ip_hdr_size + sizeof(esp_header_t), iv, 16 ); esp_encrypt_aes_cbc(sa0->crypto_alg, |