Searched refs:rtattr (Results 1 – 3 of 3) sorted by relevance
124 struct rtattr struct134 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument135 (rta)->rta_len >= sizeof(struct rtattr) && \138 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))139 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))282 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))317 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))490 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))593 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
57 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
89 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))