Lines Matching refs:rta
725 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument
745 rta_addattr_l(rta, 4096, RTA_GATEWAY, &addr.data, addr.bytelen); in parse_one_nh()
748 rta_addattr_l(rta, 4096, RTA_VIA, &addr.family, addr.bytelen+2); in parse_one_nh()
770 rta_addattr32(rta, 4096, RTA_FLOW, realm); in parse_one_nh()
773 int len = rta->rta_len; in parse_one_nh()
775 lwt_parse_encap(rta, 4096, &argc, &argv); in parse_one_nh()
776 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh()
789 struct rtattr *rta = (void*)buf; in parse_nexthops() local
792 rta->rta_type = RTA_MULTIPATH; in parse_nexthops()
793 rta->rta_len = RTA_LENGTH(0); in parse_nexthops()
794 rtnh = RTA_DATA(rta); in parse_nexthops()
807 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()
808 parse_one_nh(n, r, rta, rtnh, &argc, &argv); in parse_nexthops()
812 if (rta->rta_len > RTA_LENGTH(0)) in parse_nexthops()
813 addattr_l(n, 1024, RTA_MULTIPATH, RTA_DATA(rta), RTA_PAYLOAD(rta)); in parse_nexthops()
1127 struct rtattr *rta = (void*)buf; in iproute_modify() local
1129 rta->rta_type = RTA_ENCAP; in iproute_modify()
1130 rta->rta_len = RTA_LENGTH(0); in iproute_modify()
1132 lwt_parse_encap(rta, sizeof(buf), &argc, &argv); in iproute_modify()
1134 if (rta->rta_len > RTA_LENGTH(0)) in iproute_modify()
1135 addraw_l(&req.n, 1024, RTA_DATA(rta), RTA_PAYLOAD(rta)); in iproute_modify()