Displaying 1 result from an estimated 1 matches for "fib_convert_rtentry".
2004 Apr 10
0
handle route table in kernel
Hi all,
How can I add or modify a route in the kernel? It seems ip_rt_ioctl() does the job. I read the code but got one question.
A route is in a route table, so we have to find the table number (from 0 to 255) first. ip_rt_ioctl() called fib_convert_rtentry() to fill the fields of the req.rtm, such as the rtm_protocol, rtm_scope, rtm_type, etc. But where is rtm_table is assigned value?
Or is there any other better method to change the routing table in the kernel?
Thanks,
LMN
_______________________________________________
LARTC mailing list / LART...