Hi Pragash,

To update table[FWD] we use the ip6_fib_table_fwding* functions.
Tp update table[NON_FWD] we use the ip6_fb_table_entry_* functions.

In both cases the key is the prefix (a/x in your example). In table[FWD] the 
value is the index of the load-balance object, in table[NON-FWD] the value is 
the index of the fib_entry_t.

If you add this route;
  Ip route add a/x via b.

You’ll first see additions to both tables for b/128 and then additions for a/x.

Hth,
neale

From: Pragash Vijayaragavan <pxv3...@rit.edu>
Reply-To: "pxv3...@rit.edu" <pxv3...@rit.edu>
Date: Tuesday, 13 June 2017 at 07:26
To: "Neale Ranns (nranns)" <nra...@cisco.com>, "vpp-dev@lists.fd.io" 
<vpp-dev@lists.fd.io>
Cc: Minseok Kwon <mxk...@rit.edu>, Shailesh Vajpayee <srv6...@rit.edu>
Subject: vpp ip6 fib

Hi,

Can someone please help me on below,

when i insert a route using "ip route add <a/x> via <b>"

how does the fib insert this in its table[FWD, NON_FWD], -> does it call 
different functions for forwarding and nonforwarding ip6_addresses?

I have inserted a cuckoo_add code on "ip6_fib_table_fwding_dpo_update" function,
but only the <b> ip is getting inserted into my cuckoo filter always.

Which function does a/x call to insert into the fib?,

i also tried a cuckoo_add inside "ip6_fib_table_entry_insert"
but this didnt work as well.

I came across this when i made a CLI to display my cuckoo filter, and im pretty 
sure there is
nothing wrong with the cli.


Thanks,

Pragash Vijayaragavan
Grad Student at Rochester Institute of Technology
email : pxv3...@rit.edu<mailto:pxv3...@rit.edu>
ph : 585 764 4662

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

Reply via email to