Lines Matching refs:rtm
1583 struct rtmsg *rtm; in rt6_fill_node() local
1595 nlh = NLMSG_PUT(skb, pid, seq, type, sizeof(*rtm)); in rt6_fill_node()
1596 rtm = NLMSG_DATA(nlh); in rt6_fill_node()
1597 rtm->rtm_family = AF_INET6; in rt6_fill_node()
1598 rtm->rtm_dst_len = rt->rt6i_dst.plen; in rt6_fill_node()
1599 rtm->rtm_src_len = rt->rt6i_src.plen; in rt6_fill_node()
1600 rtm->rtm_tos = 0; in rt6_fill_node()
1601 rtm->rtm_table = RT_TABLE_MAIN; in rt6_fill_node()
1603 rtm->rtm_type = RTN_UNREACHABLE; in rt6_fill_node()
1605 rtm->rtm_type = RTN_LOCAL; in rt6_fill_node()
1607 rtm->rtm_type = RTN_UNICAST; in rt6_fill_node()
1608 rtm->rtm_flags = 0; in rt6_fill_node()
1609 rtm->rtm_scope = RT_SCOPE_UNIVERSE; in rt6_fill_node()
1610 rtm->rtm_protocol = rt->rt6i_protocol; in rt6_fill_node()
1612 rtm->rtm_protocol = RTPROT_REDIRECT; in rt6_fill_node()
1614 rtm->rtm_protocol = RTPROT_KERNEL; in rt6_fill_node()
1616 rtm->rtm_protocol = RTPROT_RA; in rt6_fill_node()
1619 rtm->rtm_flags |= RTM_F_CLONED; in rt6_fill_node()
1623 rtm->rtm_dst_len = 128; in rt6_fill_node()
1624 } else if (rtm->rtm_dst_len) in rt6_fill_node()
1629 rtm->rtm_src_len = 128; in rt6_fill_node()
1630 } else if (rtm->rtm_src_len) in rt6_fill_node()
1674 struct rtmsg *rtm = NLMSG_DATA(arg->cb->nlh); in rt6_dump_route() local
1675 prefix = (rtm->rtm_flags & RTM_F_PREFIX) != 0; in rt6_dump_route()