Lines Matching defs:rta
726 struct rtattr *rta, struct rtnexthop *rtnh,
746 rta_addattr_l(rta, 4096, RTA_GATEWAY, &addr.data, addr.bytelen);
749 rta_addattr_l(rta, 4096, RTA_VIA, &addr.family, addr.bytelen+2);
771 rta_addattr32(rta, 4096, RTA_FLOW, realm);
774 int len = rta->rta_len;
776 lwt_parse_encap(rta, 4096, &argc, &argv);
777 rtnh->rtnh_len += rta->rta_len - len;
790 struct rtattr *rta = (void*)buf;
793 rta->rta_type = RTA_MULTIPATH;
794 rta->rta_len = RTA_LENGTH(0);
795 rtnh = RTA_DATA(rta);
808 rta->rta_len += rtnh->rtnh_len;
809 parse_one_nh(n, r, rta, rtnh, &argc, &argv);
813 if (rta->rta_len > RTA_LENGTH(0))
814 addattr_l(n, 1024, RTA_MULTIPATH, RTA_DATA(rta), RTA_PAYLOAD(rta));
1128 struct rtattr *rta = (void*)buf;
1130 rta->rta_type = RTA_ENCAP;
1131 rta->rta_len = RTA_LENGTH(0);
1133 lwt_parse_encap(rta, sizeof(buf), &argc, &argv);
1135 if (rta->rta_len > RTA_LENGTH(0))
1136 addraw_l(&req.n, 1024, RTA_DATA(rta), RTA_PAYLOAD(rta));