Lines Matching refs:RTA_DATA
463 memcpy(RTA_DATA(subrta), data, alen); in add_varlen_rtattr_to_buffer()
486 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr()
894 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr)); in get_link_info()
900 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
901 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info()
907 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info()
908 else fill_address(RTA_DATA(attr), link->bcast); in get_link_info()
911 link->mtu = *((int*)(RTA_DATA(attr))); in get_link_info()
914 snprintf(link->qdiscpline, IFNAMSIZ, "%s", (char *) RTA_DATA(attr)); in get_link_info()
917 link->rt_stat = *((struct rtnl_link_stats*) RTA_DATA(attr)); in get_link_info()
920 link->parent = *((int*)(RTA_DATA(attr))); in get_link_info()
923 link->txqueuelen = *((int*)(RTA_DATA(attr))); in get_link_info()
930 if (!(lname = get_flag_string(flags, *((int*)(RTA_DATA(attr))), 0))) in get_link_info()
1021 xstrncpy(label, RTA_DATA(rta_tb[IFA_LABEL]), 256); in print_addrinfo()
1050 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]), in print_addrinfo()
1054 if (!rta_tb[IFA_ADDRESS] || !memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1055 RTA_DATA(rta_tb[IFA_LOCAL]), 4)) in print_addrinfo()
1058 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1068 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_BROADCAST]), in print_addrinfo()
1074 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ANYCAST]), in print_addrinfo()
1086 struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); in print_addrinfo()
1419 if (!inet_ntop(TT.addressfamily, RTA_DATA(rta_tb[IFA_LOCAL]), in ipaddr_print()
1519 for (rta = RTA_DATA(mxattr); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in print_rta_metrics()
1523 mxlock = *(u_int32_t *)RTA_DATA(mxrta[RTAX_LOCK]); in print_rta_metrics()
1532 val = *(u_int32_t *)RTA_DATA(mxrta[i]); in print_rta_metrics()
1561 sprintf(out, "%scongestion %s ", out, (const char*)RTA_DATA(mxrta[i])); in print_rta_metrics()
1617 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1620 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.rdst.addr, gfilter.rdst.len)) in display_route_info()
1623 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.mdst.addr, gfilter.mdst.len)) in display_route_info()
1631 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1634 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.rsrc.addr, gfilter.rsrc.len)) in display_route_info()
1637 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.msrc.addr, gfilter.msrc.len)) in display_route_info()
1644 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
1658 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info()
1661 if_indextoname(*(int*)RTA_DATA(attr[RTA_OIF]), toybuf)); in display_route_info()
1665 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_PREFSRC]), in display_route_info()
1670 sprintf(out, "%s metric %d ", out, *(uint32_t*)RTA_DATA(attr[RTA_PRIORITY])); in display_route_info()
1673 if (attr[RTA_CACHEINFO]) ci = RTA_DATA(attr[RTA_CACHEINFO]); in display_route_info()
1699 if_indextoname(*(int*)RTA_DATA(attr[RTA_IIF]), toybuf)); in display_route_info()
1722 && *(int*)RTA_DATA(attr[RTA_PRIORITY]) == -1) in display_route_info()
2111 RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in route_update()
2346 *(unsigned *)RTA_DATA(attr[RTA_PRIORITY]) : 0); in show_rules()
2350 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
2359 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in show_rules()
2369 printf("fwmark %#x ", *(uint32_t*)RTA_DATA(attr[RTA_PROTOINFO])); in show_rules()
2371 if (attr[RTA_IIF]) printf("iif %s ", (char*)RTA_DATA(attr[RTA_IIF])); in show_rules()
2377 u_int32_t from, to = *(u_int32_t *)RTA_DATA(attr[RTA_FLOW]); in show_rules()
2388 RTA_DATA(attr[RTA_GATEWAY]), toybuf, sizeof(toybuf))); in show_rules()