Lines Matching refs:rtm
293 struct rtmsg rtm; in ip_rt_ioctl() member
304 err = fib_convert_rtentry(cmd, &req.nlh, &req.rtm, &rta, &r); in ip_rt_ioctl()
307 struct fib_table *tb = fib_get_table(req.rtm.rtm_table); in ip_rt_ioctl()
310 err = tb->tb_delete(tb, &req.rtm, &rta, &req.nlh, NULL); in ip_rt_ioctl()
312 struct fib_table *tb = fib_new_table(req.rtm.rtm_table); in ip_rt_ioctl()
315 err = tb->tb_insert(tb, &req.rtm, &rta, &req.nlh, NULL); in ip_rt_ioctl()
422 struct rtmsg rtm; in fib_magic() member
426 memset(&req.rtm, 0, sizeof(req.rtm)); in fib_magic()
443 req.rtm.rtm_dst_len = dst_len; in fib_magic()
444 req.rtm.rtm_table = tb->tb_id; in fib_magic()
445 req.rtm.rtm_protocol = RTPROT_KERNEL; in fib_magic()
446 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic()
447 req.rtm.rtm_type = type; in fib_magic()
454 tb->tb_insert(tb, &req.rtm, &rta, &req.nlh, NULL); in fib_magic()
456 tb->tb_delete(tb, &req.rtm, &rta, &req.nlh, NULL); in fib_magic()