Hi nagp,

We should remove the conditional CLIB_DEBUG from the declaration of 
FIB_PROTOCOL_IP4 in fib_types.h . It was there to assist me during development. 
But related errors have now been found and coverity checks enum type 
mismatches, so it’s save to be removed.
I’ll push a patch shortly.

Regards,
Neale


From: <vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>> on 
behalf of Nagaprabhanjan Bellaru 
<nagp.li...@gmail.com<mailto:nagp.li...@gmail.com>>
Date: Friday, 2 December 2016 at 14:10
To: vpp-dev <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: [vpp-dev] Getting different values in VPP and plugin for 
FIB_PROTOCOL_IP4/6

HI,

I am writing a small plugin to process packets from a graph node. I see that 
FIB_PROTOCOL_IP4 is being mapped to 0 and fib_table_get(0, 0) (index 0 and 
protocol 0) is asserting.

However, fib_table_get(0, 1) and fib_table_get(0, 2) are returning ip4 and ip6 
fib tables respectively, indicating that the value of enum "FIB_PROTOCOL_IP4" 
is different in the core code and in the plugin.

Is there anything that I should do to make the symbol "CLIB_DEBUG" available 
inside the plugin?

Thanks,
-nagp
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to