Lines Matching refs:RTA_DATA

202 			struct rtvia *via = RTA_DATA(tb[RTA_VIA]);  in filter_nlmsg()
214 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), (r->rtm_dst_len+7)/8); in filter_nlmsg()
219 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), (r->rtm_src_len+7)/8); in filter_nlmsg()
225 memcpy(&via.data, RTA_DATA(tb[RTA_GATEWAY]), host_len/8); in filter_nlmsg()
228 struct rtvia *rtvia = RTA_DATA(tb[RTA_VIA]); in filter_nlmsg()
237 memcpy(&prefsrc.data, RTA_DATA(tb[RTA_PREFSRC]), host_len/8); in filter_nlmsg()
266 iif = *(int*)RTA_DATA(tb[RTA_IIF]); in filter_nlmsg()
273 oif = *(int*)RTA_DATA(tb[RTA_OIF]); in filter_nlmsg()
280 mark = *(int *)RTA_DATA(tb[RTA_MARK]); in filter_nlmsg()
289 *(int*)RTA_DATA(tb[RTA_PRIORITY]) == -1) in filter_nlmsg()
367 RTA_DATA(tb[RTA_DST]), in print_route()
374 RTA_DATA(tb[RTA_DST]), in print_route()
387 RTA_DATA(tb[RTA_SRC]), in print_route()
394 RTA_DATA(tb[RTA_SRC]), in print_route()
404 RTA_DATA(tb[RTA_NEWDST]), in print_route()
421 RTA_DATA(tb[RTA_GATEWAY]), in print_route()
426 struct rtvia *via = RTA_DATA(tb[RTA_VIA]); in print_route()
433 fprintf(fp, "dev %s ", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_OIF]))); in print_route()
450 RTA_DATA(tb[RTA_PREFSRC]), in print_route()
468 unsigned int mark = *(unsigned int*)RTA_DATA(tb[RTA_MARK]); in print_route()
520 struct rta_cacheinfo *ci = RTA_DATA(tb[RTA_CACHEINFO]); in print_route()
544 ci = RTA_DATA(tb[RTA_CACHEINFO]); in print_route()
572 parse_rtattr(mxrta, RTAX_MAX, RTA_DATA(tb[RTA_METRICS]), in print_route()
575 mxlock = *(unsigned*)RTA_DATA(mxrta[RTAX_LOCK]); in print_route()
625 fprintf(fp, " iif %s", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_IIF]))); in print_route()
628 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); in print_route()
657 RTA_DATA(tb[RTA_GATEWAY]), in print_route()
662 struct rtvia *via = RTA_DATA(tb[RTA_VIA]); in print_route()
794 rtnh = RTA_DATA(rta); in parse_nexthops()
813 addattr_l(n, 1024, RTA_MULTIPATH, RTA_DATA(rta), RTA_PAYLOAD(rta)); in parse_nexthops()
1135 addraw_l(&req.n, 1024, RTA_DATA(rta), RTA_PAYLOAD(rta)); in iproute_modify()
1183 addattr_l(&req.n, sizeof(req), RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in iproute_modify()