• Home
  • Raw
  • Download

Lines Matching refs:rtm_family

1577   int hlen = ((msg->rtm_family == AF_INET) ? 32  in display_route_info()
1578 : ((msg->rtm_family == AF_INET6) ? 128 : -1)); in display_route_info()
1583 if (msg->rtm_family == AF_INET6) { in display_route_info()
1601 if (gfilter.rdst.family && (msg->rtm_family != gfilter.rdst.family || in display_route_info()
1603 if (gfilter.mdst.family && (msg->rtm_family != gfilter.mdst.family in display_route_info()
1605 if (gfilter.rsrc.family && (msg->rtm_family != gfilter.rsrc.family in display_route_info()
1607 if (gfilter.msrc.family && (msg->rtm_family != gfilter.msrc.family in display_route_info()
1617 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1631 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1644 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
1652 if (strcmp((char *)inet_ntop(msg->rtm_family, gfilter.rvia.addr, in display_route_info()
1665 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_PREFSRC]), in display_route_info()
1671 if (msg->rtm_family == AF_INET6) { in display_route_info()
1718 if (msg->rtm_family == AF_INET6 in display_route_info()
1794 request.msg.rtm_family = AF_UNSPEC; in route_get()
1806 parse_prefix(addr, &netmask, &len, *argv, request.msg.rtm_family); in route_get()
1807 if (len) request.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_get()
1808 netmask = (request.msg.rtm_family == AF_INET6) ? 128 : 32; in route_get()
1991 request.msg.rtm_family = family; in route_show_flush()
2026 req.msg.rtm_family = AF_UNSPEC; in route_update()
2043 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
2044 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
2049 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
2050 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
2094 parse_prefix(addr, &netmask, &len, *argv, req.msg.rtm_family); in route_update()
2095 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
2125 if (req.msg.rtm_family == AF_UNSPEC) req.msg.rtm_family = AF_INET; in route_update()
2202 request.msg.rtm_family = TT.addressfamily; in ruleupdate()
2217 parse_prefix(addr, &netmask, &len, *argv, request.msg.rtm_family); in ruleupdate()
2320 if (!request.msg.rtm_family) request.msg.rtm_family = AF_INET; in ruleupdate()
2333 int hlen = ((msg->rtm_family == AF_INET) ? 32 in show_rules()
2334 : ((msg->rtm_family == AF_INET6) ? 128 : -1)); in show_rules()
2349 printf("%s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2350 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
2358 printf("to %s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2359 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in show_rules()
2387 else printf("map-to %s ", inet_ntop(msg->rtm_family, in show_rules()