Lines Matching refs:RTA_DATA
437 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr()
845 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr)); in get_link_info()
851 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
852 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info()
858 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info()
859 else fill_address(RTA_DATA(attr), link->bcast); in get_link_info()
862 link->mtu = *((int*)(RTA_DATA(attr))); in get_link_info()
865 snprintf(link->qdiscpline, IFNAMSIZ, "%s", (char *) RTA_DATA(attr)); in get_link_info()
868 link->rt_stat = *((struct rtnl_link_stats*) RTA_DATA(attr)); in get_link_info()
871 link->parent = *((int*)(RTA_DATA(attr))); in get_link_info()
874 link->txqueuelen = *((int*)(RTA_DATA(attr))); in get_link_info()
881 if (!(lname = get_flag_string(flags, *((int*)(RTA_DATA(attr))), 0))) in get_link_info()
972 xstrncpy(label, RTA_DATA(rta_tb[IFA_LABEL]), 256); in print_addrinfo()
1001 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]), in print_addrinfo()
1005 if (!rta_tb[IFA_ADDRESS] || !memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1006 RTA_DATA(rta_tb[IFA_LOCAL]), 4)) in print_addrinfo()
1009 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1019 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_BROADCAST]), in print_addrinfo()
1025 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ANYCAST]), in print_addrinfo()
1037 struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); in print_addrinfo()
1370 if (!inet_ntop(TT.addressfamily, RTA_DATA(rta_tb[IFA_LOCAL]), in ipaddr_print()
1509 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1512 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.rdst.addr, gfilter.rdst.len)) in display_route_info()
1515 memcmp(RTA_DATA(attr[RTA_DST]), &gfilter.mdst.addr, gfilter.mdst.len)) in display_route_info()
1523 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1526 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.rsrc.addr, gfilter.rsrc.len)) in display_route_info()
1529 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.msrc.addr, gfilter.msrc.len)) in display_route_info()
1536 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
1550 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info()
1553 if_indextoname(*(int*)RTA_DATA(attr[RTA_OIF]), toybuf)); in display_route_info()
1557 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_PREFSRC]), in display_route_info()
1562 sprintf(out, "%s metric %d ", out, *(uint32_t*)RTA_DATA(attr[RTA_PRIORITY])); in display_route_info()
1565 if (attr[RTA_CACHEINFO]) ci = RTA_DATA(attr[RTA_CACHEINFO]); in display_route_info()
1591 if_indextoname(*(int*)RTA_DATA(attr[RTA_IIF]), toybuf)); in display_route_info()
1610 && *(int*)RTA_DATA(attr[RTA_PRIORITY]) == -1) in display_route_info()
2001 RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in route_update()
2236 *(unsigned *)RTA_DATA(attr[RTA_PRIORITY]) : 0); in show_rules()
2240 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
2249 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in show_rules()
2259 printf("fwmark %#x ", *(uint32_t*)RTA_DATA(attr[RTA_PROTOINFO])); in show_rules()
2261 if (attr[RTA_IIF]) printf("iif %s ", (char*)RTA_DATA(attr[RTA_IIF])); in show_rules()
2267 u_int32_t from, to = *(u_int32_t *)RTA_DATA(attr[RTA_FLOW]); in show_rules()
2278 RTA_DATA(attr[RTA_GATEWAY]), toybuf, sizeof(toybuf))); in show_rules()