Home
last modified time | relevance | path

Searched refs:NLMSG_ALIGN (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/basic/linux/
Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #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)))
Drtnetlink.h388 #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))))
Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Dif_link.h368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c568 if (NLMSG_ALIGN(rtnh->rtnh_len) > size) in rtattr_read_nexthop()
623 size -= NLMSG_ALIGN(rtnh->rtnh_len); in rtattr_read_nexthop()
Dnetlink-message.c184 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()