IPv4 route lookup

Routing query function fib_ table_ The lookup parameter specifies the routing table tb, flow information flp, and flag FIB required for the query operation_ Flags, return the result res. The destination address daddr of the flow structure flp member is the primary key value required for the query. fib_flags supports two lookup flags: FIB_LOOKUP ...

Posted by PHP Man on Sun, 05 Dec 2021 19:14:06 -0800

Add routing table entry for IPv4

The following IP commands add routing table entries. By default, routes are added in the main routing table: # ip route add 19.1.0.0/16 via 192.168.9.1 # # ip route show table main 19.1.0.0/16 via 192.168.9.1 dev ens34 Kernel function inet_rtm_newroute handles the addition of routes. Function rtm_to_fib_config converts netlink data to kern ...

Posted by misfits on Fri, 19 Nov 2021 14:03:54 -0800