X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_types.c;h=3ac5c1d11837943e5543d89c0f8c5ee8982f8ea1;hb=320dfcf2aa8f4617b51a2bb15f3d0f93ee62d4dc;hp=7b07fa976a4ad14463d98d8f9bc64a40e446eefc;hpb=e16707b5b2195fda47c1a3db7ba61f30055d2dbc;p=vpp.git diff --git a/src/vnet/fib/fib_types.c b/src/vnet/fib/fib_types.c index 7b07fa976a4..3ac5c1d1183 100644 --- a/src/vnet/fib/fib_types.c +++ b/src/vnet/fib/fib_types.c @@ -102,6 +102,13 @@ fib_prefix_from_mpls_label (mpls_label_t label, pfx->fp_eos = eos; } +void +fib_prefix_copy (fib_prefix_t *dst, + const fib_prefix_t *src) +{ + memcpy(dst, src, sizeof(*dst)); +} + int fib_prefix_cmp (const fib_prefix_t *p1, const fib_prefix_t *p2)