• Home
  • Raw
  • Download

Lines Matching refs:rta

431   struct rtattr *rta;  in add_string_to_rtattr()  local
434 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len)); in add_string_to_rtattr()
435 rta->rta_type = type; in add_string_to_rtattr()
436 rta->rta_len = len; in add_string_to_rtattr()
437 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr()
950 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in print_addrinfo() local
962 for (rta = IFA_RTA(ifa); RTA_OK(rta, len); rta=RTA_NEXT(rta, len)) in print_addrinfo()
963 if (rta->rta_type <= IFA_MAX) rta_tb[rta->rta_type] = rta; in print_addrinfo()
1351 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in ipaddr_print() local
1365 for (rta = IFA_RTA(addressInfo); RTA_OK(rta, rt_len); rta=RTA_NEXT(rta, rt_len)) { in ipaddr_print()
1366 if (rta->rta_type <= IFA_MAX) rta_tb[rta->rta_type] = rta; in ipaddr_print()
1467 struct rtattr *rta, *attr[RTA_MAX+1] = {0,}; in display_route_info() local
1503 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in display_route_info()
1504 if (rta->rta_type <= RTA_MAX) attr[rta->rta_type] = rta; in display_route_info()
1600 struct rtattr *rta, *attr[RTA_MAX+1] = {0,}; in display_route_info() local
1603 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in display_route_info()
1604 if (rta->rta_type <= RTA_MAX) attr[rta->rta_type] = rta; in display_route_info()
1731 struct rtattr *rta, *attr[RTA_MAX+1] = {0,}; in route_get() local
1737 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in route_get()
1738 if (rta->rta_type <= RTA_MAX) attr[rta->rta_type] = rta; in route_get()
2221 struct rtattr *rta, *attr[RTA_MAX+1] = {0,}; in show_rules() local
2230 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in show_rules()
2231 if (rta->rta_type <= RTA_MAX) attr[rta->rta_type] = rta; in show_rules()
2233 if (tvar) error_msg("deficit %d, rtalen = %d!", tvar, rta->rta_len); in show_rules()