X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_types.c;h=dcb1c3a659c43f059ccb017682bc828f25fd1a82;hb=ea96e92361b483962fd2a6b027cedc02f3bb6f93;hp=c859913eeff4eb3095e1dcf5e436599330b9236d;hpb=cbe25aab3be72154f2c706c39eeba6a77f34450f;p=vpp.git diff --git a/src/vnet/fib/fib_types.c b/src/vnet/fib/fib_types.c index c859913eeff..dcb1c3a659c 100644 --- a/src/vnet/fib/fib_types.c +++ b/src/vnet/fib/fib_types.c @@ -89,6 +89,7 @@ fib_prefix_from_ip46_addr (const ip46_address_t *addr, pfx->fp_len = ((ip46_address_is_ip4(addr) ? 32 : 128)); pfx->fp_addr = *addr; + pfx->___fp___pad = 0; } void @@ -100,13 +101,14 @@ fib_prefix_from_mpls_label (mpls_label_t label, pfx->fp_len = 21; pfx->fp_label = label; pfx->fp_eos = eos; + pfx->___fp___pad = 0; } void fib_prefix_copy (fib_prefix_t *dst, const fib_prefix_t *src) { - memcpy(dst, src, sizeof(*dst)); + clib_memcpy(dst, src, sizeof(*dst)); } int