Searched refs:NLMSG_ALIGN (Results 1 – 7 of 7) sorted by relevance
90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \97 NLMSG_ALIGN((nlh)->nlmsg_len)))
388 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))639 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))780 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
568 if (NLMSG_ALIGN(rtnh->rtnh_len) > size) in rtattr_read_nexthop()623 size -= NLMSG_ALIGN(rtnh->rtnh_len); in rtattr_read_nexthop()
184 assert(NLMSG_ALIGN(m->hdr->nlmsg_len) == m->hdr->nlmsg_len); in add_rtattr()1396 … (struct rtattr*)((uint8_t*) NLMSG_DATA(m->hdr) + NLMSG_ALIGN(size)), in sd_netlink_message_rewind()