Lines Matching refs:rtm_family
1469 int hlen = ((msg->rtm_family == AF_INET) ? 32 in display_route_info()
1470 : ((msg->rtm_family == AF_INET6) ? 128 : -1)); in display_route_info()
1475 if (msg->rtm_family == AF_INET6) { in display_route_info()
1493 if (gfilter.rdst.family && (msg->rtm_family != gfilter.rdst.family || in display_route_info()
1495 if (gfilter.mdst.family && (msg->rtm_family != gfilter.mdst.family in display_route_info()
1497 if (gfilter.rsrc.family && (msg->rtm_family != gfilter.rsrc.family in display_route_info()
1499 if (gfilter.msrc.family && (msg->rtm_family != gfilter.msrc.family in display_route_info()
1509 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1523 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1536 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
1544 if (strcmp((char *)inet_ntop(msg->rtm_family, gfilter.rvia.addr, in display_route_info()
1557 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_PREFSRC]), in display_route_info()
1563 if (msg->rtm_family == AF_INET6) { in display_route_info()
1606 if (msg->rtm_family == AF_INET6 in display_route_info()
1682 request.msg.rtm_family = AF_UNSPEC; in route_get()
1694 parse_prefix(addr, &netmask, &len, *argv, request.msg.rtm_family); in route_get()
1695 if (len) request.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_get()
1696 netmask = (request.msg.rtm_family == AF_INET6) ? 128 : 32; in route_get()
1879 request.msg.rtm_family = family; in route_show_flush()
1914 req.msg.rtm_family = AF_UNSPEC; in route_update()
1931 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
1932 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
1937 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
1938 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
1983 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
1984 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
2015 if (req.msg.rtm_family == AF_UNSPEC) req.msg.rtm_family = AF_INET; in route_update()
2092 request.msg.rtm_family = TT.addressfamily; in ruleupdate()
2107 parse_prefix(addr, &netmask, &len, *argv, request.msg.rtm_family); in ruleupdate()
2210 if (!request.msg.rtm_family) request.msg.rtm_family = AF_INET; in ruleupdate()
2223 int hlen = ((msg->rtm_family == AF_INET) ? 32 in show_rules()
2224 : ((msg->rtm_family == AF_INET6) ? 128 : -1)); in show_rules()
2239 printf("%s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2240 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
2248 printf("to %s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2249 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in show_rules()
2277 else printf("map-to %s ", inet_ntop(msg->rtm_family, in show_rules()