Lines Matching refs:rtattr
167 struct rtattr {
176 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
177 (rta)->rta_len >= sizeof(struct rtattr) && \
180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
181 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
335 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
374 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
397 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
563 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
698 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))