Lines Matching refs:rtm
2077 struct rtmsg *rtm;
2081 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy);
2086 rtm = nlmsg_data(nlh);
2089 cfg->fc_table = rtm->rtm_table;
2090 cfg->fc_dst_len = rtm->rtm_dst_len;
2091 cfg->fc_src_len = rtm->rtm_src_len;
2093 cfg->fc_protocol = rtm->rtm_protocol;
2095 if (rtm->rtm_type == RTN_UNREACHABLE)
2108 int plen = (rtm->rtm_dst_len + 7) >> 3;
2117 int plen = (rtm->rtm_src_len + 7) >> 3;
2189 struct rtmsg *rtm;
2201 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtm), flags);
2205 rtm = nlmsg_data(nlh);
2206 rtm->rtm_family = AF_INET6;
2207 rtm->rtm_dst_len = rt->rt6i_dst.plen;
2208 rtm->rtm_src_len = rt->rt6i_src.plen;
2209 rtm->rtm_tos = 0;
2214 rtm->rtm_table = table;
2217 rtm->rtm_type = RTN_UNREACHABLE;
2219 rtm->rtm_type = RTN_LOCAL;
2221 rtm->rtm_type = RTN_UNICAST;
2222 rtm->rtm_flags = 0;
2223 rtm->rtm_scope = RT_SCOPE_UNIVERSE;
2224 rtm->rtm_protocol = rt->rt6i_protocol;
2226 rtm->rtm_protocol = RTPROT_REDIRECT;
2228 rtm->rtm_protocol = RTPROT_KERNEL;
2230 rtm->rtm_protocol = RTPROT_RA;
2233 rtm->rtm_flags |= RTM_F_CLONED;
2237 rtm->rtm_dst_len = 128;
2238 } else if (rtm->rtm_dst_len)
2243 rtm->rtm_src_len = 128;
2244 } else if (rtm->rtm_src_len)
2250 int err = ip6mr_get_route(net, skb, rtm, nowait);
2307 struct rtmsg *rtm = nlmsg_data(arg->cb->nlh);
2308 prefix = (rtm->rtm_flags & RTM_F_PREFIX) != 0;
2324 struct rtmsg *rtm;
2328 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy);