search for: rtm_table

Displaying 2 results from an estimated 2 matches for "rtm_table".

2006 Jul 25
3
problem in Route add using netlink
...The message is a request for dump. nlMsg->nlmsg_seq = msgSeq++; // Sequence of the message packet. nlMsg->nlmsg_pid = getpid(); // PID of process sending the request. rtMsg->rtm_family = AF_INET; rtMsg->rtm_table = RT_TABLE_UNSPEC; rtMsg->rtm_dst_len = 16; rtMsg->rtm_src_len = 16; rtMsg->rtm_scope = RT_SCOPE_UNIVERSE; rtMsg->rtm_type = RTN_UNICAST; rtMsg->rtm_protocol = RTPROT_UNSPEC; rtMsg->rtm_flags = RTM_F_NOTIFY; fillRoute (&a...
2004 Apr 10
0
handle route table in kernel
...s 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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/