Lines Matching refs:RTA_DATA
464 memcpy(RTA_DATA(subrta), data, alen); in add_varlen_rtattr_to_buffer()
487 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr()
895 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr)); in get_link_info()
901 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
902 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info()
908 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info()
909 else fill_address(RTA_DATA(attr), link->bcast); in get_link_info()
912 link->mtu = *((int*)(RTA_DATA(attr))); in get_link_info()
915 snprintf(link->qdiscpline, IFNAMSIZ, "%s", (char *) RTA_DATA(attr)); in get_link_info()
918 link->rt_stat = *((struct rtnl_link_stats*) RTA_DATA(attr)); in get_link_info()
921 link->parent = *((int*)(RTA_DATA(attr))); in get_link_info()
924 link->txqueuelen = *((int*)(RTA_DATA(attr))); in get_link_info()
931 if (!(lname = get_flag_string(flags, *((int*)(RTA_DATA(attr))), 0))) in get_link_info()
1022 xstrncpy(label, RTA_DATA(rta_tb[IFA_LABEL]), 256); in print_addrinfo()
1051 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]), in print_addrinfo()
1055 if (!rta_tb[IFA_ADDRESS] || !memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1056 RTA_DATA(rta_tb[IFA_LOCAL]), 4)) in print_addrinfo()
1059 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1069 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_BROADCAST]), in print_addrinfo()
1075 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ANYCAST]), in print_addrinfo()
1087 struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); in print_addrinfo()
1420 if (!inet_ntop(TT.addressfamily, RTA_DATA(rta_tb[IFA_LOCAL]), in ipaddr_print()
1518 for (rta = RTA_DATA(mxattr); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in print_rta_metrics()
1522 mxlock = *(u_int32_t *)RTA_DATA(mxrta[RTAX_LOCK]); in print_rta_metrics()
1531 val = *(u_int32_t *)RTA_DATA(mxrta[i]); in print_rta_metrics()
1560 sprintf(out, "%scongestion %s ", out, (const char*)RTA_DATA(mxrta[i])); in print_rta_metrics()
1616 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1619 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.rdst.addr, gfilter.rdst.len)) in display_route_info()
1622 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.mdst.addr, gfilter.mdst.len)) in display_route_info()
1630 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1633 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.rsrc.addr, gfilter.rsrc.len)) in display_route_info()
1636 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.msrc.addr, gfilter.msrc.len)) in display_route_info()
1643 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
1657 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info()
1660 if_indextoname(*(int*)RTA_DATA(attr[RTA_OIF]), toybuf)); in display_route_info()
1664 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_PREFSRC]), in display_route_info()
1669 sprintf(out, "%s metric %d ", out, *(uint32_t*)RTA_DATA(attr[RTA_PRIORITY])); in display_route_info()
1672 if (attr[RTA_CACHEINFO]) ci = RTA_DATA(attr[RTA_CACHEINFO]); in display_route_info()
1698 if_indextoname(*(int*)RTA_DATA(attr[RTA_IIF]), toybuf)); in display_route_info()
1721 && *(int*)RTA_DATA(attr[RTA_PRIORITY]) == -1) in display_route_info()
2110 RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in route_update()
2343 *(unsigned *)RTA_DATA(attr[RTA_PRIORITY]) : 0); in show_rules()
2347 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
2356 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in show_rules()
2366 printf("fwmark %#x ", *(uint32_t*)RTA_DATA(attr[RTA_PROTOINFO])); in show_rules()
2368 if (attr[RTA_IIF]) printf("iif %s ", (char*)RTA_DATA(attr[RTA_IIF])); in show_rules()
2374 u_int32_t from, to = *(u_int32_t *)RTA_DATA(attr[RTA_FLOW]); in show_rules()
2385 RTA_DATA(attr[RTA_GATEWAY]), toybuf, sizeof(toybuf))); in show_rules()