Home | History | Annotate | Download | only in ip

Lines Matching refs:rtm_family

139 	if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN)
145 if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) {
170 (r->rtm_family != filter.rdst.family || filter.rdst.bitlen > r->rtm_dst_len))
173 (r->rtm_family != filter.mdst.family ||
177 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len))
180 (r->rtm_family != filter.msrc.family ||
183 if (filter.rvia.family && r->rtm_family != filter.rvia.family)
185 if (filter.rprefsrc.family && r->rtm_family != filter.rprefsrc.family)
189 dst.family = r->rtm_family;
194 src.family = r->rtm_family;
200 via.family = r->rtm_family;
206 prefsrc.family = r->rtm_family;
256 r->rtm_family == AF_INET6 &&
268 if (r->rtm_family == AF_INET6)
270 else if (r->rtm_family == AF_INET)
272 else if (r->rtm_family == AF_DECnet)
274 else if (r->rtm_family == AF_IPX)
337 fprintf(fp, "%s/%u ", rt_addr_n2a(r->rtm_family,
344 fprintf(fp, "%s ", format_host(r->rtm_family,
357 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
364 fprintf(fp, "from %s ", format_host(r->rtm_family,
380 format_host(r->rtm_family,
401 rt_addr_n2a(r->rtm_family,
438 if ((r->rtm_flags&RTM_F_CLONED) && r->rtm_family == AF_INET) {
487 } else if (r->rtm_family == AF_INET6) {
586 format_host(r->rtm_family,
722 req.r.rtm_family = preferred_family;
739 get_addr(&addr, *argv, req.r.rtm_family);
740 if (req.r.rtm_family == AF_UNSPEC)
741 req.r.rtm_family = addr.family;
747 get_addr(&addr, *argv, req.r.rtm_family);
748 if (req.r.rtm_family == AF_UNSPEC)
749 req.r.rtm_family = addr.family;
754 get_prefix(&addr, *argv, req.r.rtm_family);
755 if (req.r.rtm_family == AF_UNSPEC)
756 req.r.rtm_family = addr.family;
953 get_prefix(&dst, *argv, req.r.rtm_family);
954 if (req.r.rtm_family == AF_UNSPEC)
955 req.r.rtm_family = dst.family;
1011 if (req.r.rtm_family == AF_UNSPEC)
1012 req.r.rtm_family = AF_INET;
1037 req.rtm.rtm_family = family;
1365 req.r.rtm_family = preferred_family;
1388 get_prefix(&addr, *argv, req.r.rtm_family);
1389 if (req.r.rtm_family == AF_UNSPEC)
1390 req.r.rtm_family = addr.family;
1415 get_prefix(&addr, *argv, req.r.rtm_family);
1416 if (req.r.rtm_family == AF_UNSPEC)
1417 req.r.rtm_family = addr.family;
1453 if (req.r.rtm_family == AF_UNSPEC)
1454 req.r.rtm_family = AF_INET;