Lines Matching defs:rta
39 #define RTA_TYPE(rta) ((rta)->rta_type & NLA_TYPE_MASK)
40 #define RTA_FLAGS(rta) ((rta)->rta_type & ~NLA_TYPE_MASK)
172 struct rtattr *rta;
186 /* get the size of the new rta attribute (with padding at the end) */
199 rta = (struct rtattr *) ((uint8_t *) m->hdr + offset);
206 rta->rta_type = type;
207 rta->rta_len = rta_length;
212 padding = mempcpy(RTA_DATA(rta), data, data_length);
216 padding = RTA_DATA(rta);
520 struct rtattr *rta;
534 rta = (struct rtattr*)((uint8_t *) m->hdr + attribute->offset);
536 *data = RTA_DATA(rta);
541 return RTA_PAYLOAD(rta);
733 struct rtattr *rta,
741 for (; RTA_OK(rta, rt_len); rta = RTA_NEXT(rta, rt_len)) {
744 type = RTA_TYPE(rta);
754 attributes[type].offset = (uint8_t *) rta - (uint8_t *) m->hdr;
755 attributes[type].nested = RTA_FLAGS(rta) & NLA_F_NESTED;
756 attributes[type].net_byteorder = RTA_FLAGS(rta) & NLA_F_NET_BYTEORDER;