Home | History | Annotate | Download | only in ip

Lines Matching full:rtm_family

152 	if (preferred_family != AF_UNSPEC && r->rtm_family != preferred_family)
155 if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN)
161 if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) {
186 (r->rtm_family != filter.rdst.family || filter.rdst.bitlen > r->rtm_dst_len))
189 (r->rtm_family != filter.mdst.family ||
193 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len))
196 (r->rtm_family != filter.msrc.family ||
200 int family = r->rtm_family;
208 if (filter.rprefsrc.family && r->rtm_family != filter.rprefsrc.family)
212 dst.family = r->rtm_family;
217 src.family = r->rtm_family;
223 via.family = r->rtm_family;
235 prefsrc.family = r->rtm_family;
285 r->rtm_family == AF_INET6 &&
333 host_len = af_bit_len(r->rtm_family);
365 fprintf(fp, "%s/%u ", rt_addr_n2a(r->rtm_family,
372 fprintf(fp, "%s ", format_host(r->rtm_family,
385 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
392 fprintf(fp, "from %s ", format_host(r->rtm_family,
402 fprintf(fp, "as to %s ", format_host(r->rtm_family,
419 format_host(r->rtm_family,
448 rt_addr_n2a(r->rtm_family,
492 if ((r->rtm_flags&RTM_F_CLONED) && r->rtm_family == AF_INET) {
541 } else if (r->rtm_family == AF_INET6) {
655 format_host(r->rtm_family,
738 family = r->rtm_family;
742 if (r->rtm_family == AF_UNSPEC)
743 r->rtm_family = addr.family;
744 if (addr.family == r->rtm_family) {
842 req.r.rtm_family = preferred_family;
859 get_addr(&addr, *argv, req.r.rtm_family);
860 if (req.r.rtm_family == AF_UNSPEC)
861 req.r.rtm_family = addr.family;
869 get_addr(&addr, *argv, req.r.rtm_family);
870 if (req.r.rtm_family == AF_UNSPEC)
871 req.r.rtm_family = addr.family;
880 family = req.r.rtm_family;
884 if (req.r.rtm_family == AF_UNSPEC)
885 req.r.rtm_family = addr.family;
886 if (addr.family == req.r.rtm_family)
893 get_prefix(&addr, *argv, req.r.rtm_family);
894 if (req.r.rtm_family == AF_UNSPEC)
895 req.r.rtm_family = addr.family;
1154 get_prefix(&dst, *argv, req.r.rtm_family);
1155 if (req.r.rtm_family == AF_UNSPEC)
1156 req.r.rtm_family = dst.family;
1189 if (req.r.rtm_family == AF_UNSPEC)
1190 req.r.rtm_family = AF_INET;
1200 if (req.r.rtm_family == AF_INET6 ||
1201 req.r.rtm_family == AF_MPLS)
1219 if (!type_ok && req.r.rtm_family == AF_MPLS)
1245 req.rtm.rtm_family = family;
1287 host_len = af_bit_len(r->rtm_family);
1597 req.r.rtm_family = preferred_family;
1620 get_prefix(&addr, *argv, req.r.rtm_family);
1621 if (req.r.rtm_family == AF_UNSPEC)
1622 req.r.rtm_family = addr.family;
1652 get_prefix(&addr, *argv, req.r.rtm_family);
1653 if (req.r.rtm_family == AF_UNSPEC)
1654 req.r.rtm_family = addr.family;
1688 if (req.r.rtm_family == AF_UNSPEC)
1689 req.r.rtm_family = AF_INET;