diff options
Diffstat (limited to 'vnet/vnet/lisp-cp/gid_dictionary.c')
-rw-r--r-- | vnet/vnet/lisp-cp/gid_dictionary.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vnet/vnet/lisp-cp/gid_dictionary.c b/vnet/vnet/lisp-cp/gid_dictionary.c index 9efc1a08..d238124e 100644 --- a/vnet/vnet/lisp-cp/gid_dictionary.c +++ b/vnet/vnet/lisp-cp/gid_dictionary.c @@ -42,8 +42,10 @@ foreach_sfib4_subprefix (BVT (clib_bihash_kv) * kvp, void *arg) ASSERT (plen <= 32); mask = &a->ip4_table->ip4_fib_masks[plen]; - u32 src_ip = clib_host_to_net_u32 (ip_prefix_v4 (&a->src).as_u32); + u32 src_ip = ip_prefix_v4 (&a->src).as_u32; src_ip &= mask->as_u32; + ip &= mask->as_u32; + if (src_ip == ip) { /* found sub-prefix of src prefix */ |