Lines Matching defs:rtattr
149 struct rtattr {
158 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
159 (rta)->rta_len >= sizeof(struct rtattr) && \
162 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
163 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
305 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
339 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
356 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
514 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
628 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))