NLMSG_ALIGN
char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) +
NLMSG_ALIGN(sizeof(struct rtgenmsg))];
NLMSG_ALIGN(sizeof(struct ifaddrs[icnt]))
NLMSG_ALIGN(sizeof(char *[max_ifindex+1]))
+ NLMSG_ALIGN(sizeof(uint16_t [max_ifindex+1])));
data += NLMSG_ALIGN(sizeof(struct ifaddrs)) * icnt;
ifflist = (uint16_t *)(((char *)iflist) + NLMSG_ALIGN(sizeof(char *[max_ifindex+1])));
rtasize = NLMSG_PAYLOAD(nlh, nlmlen) - NLMSG_ALIGN(nlm_struct_size);
for (rta = (struct rtattr *)(((char *)NLMSG_DATA(nlh)) + NLMSG_ALIGN(nlm_struct_size));
sockaddr_size = NLMSG_ALIGN(sa_len);
dlen += NLMSG_ALIGN(sa_len);
data += NLMSG_ALIGN(sa_len);
nlen += NLMSG_ALIGN(rtapayload + 1);
ifname += NLMSG_ALIGN(rtapayload + 1);
xlen += NLMSG_ALIGN(rtapayload);
xdata += NLMSG_ALIGN(rtapayload);
nlen += NLMSG_ALIGN(rtapayload + 1);
ifname += NLMSG_ALIGN(rtapayload + 1);
sockaddr_size = NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.address_len));
dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.address_len));
data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.address_len));
dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.netmask_len));
data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.netmask_len));
dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.broadcast_len));
data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.broadcast_len));
dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.anycast_len));
data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.anycast_len));
size_t aligned_len = NLMSG_ALIGN(nl->nlmsg_len);
out_hdr = nlmsg_reserve_data(nw, NLMSG_ALIGN(hdr->nlmsg_len), char);
memcpy(next_hdr, hdr + 1, NLMSG_ALIGN(sz));
dst_payload = nlmsg_reserve_data(nw, NLMSG_ALIGN(copy_len), char);
msglen = NLMSG_ALIGN(hdr->nlmsg_len);
#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len))
#define _NLMSG_ALIGNED_LEN(_hdr) NLMSG_ALIGN(_NLMSG_LEN(_hdr))
#define NLMSG_HDRLEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)))
int msglen = NLMSG_ALIGN(hdr->nlmsg_len);
ssize_t sz = NLMSG_ALIGN(hdr->nlmsg_len);
ss->off += NLMSG_ALIGN(hdr->nlmsg_len);
ss->off += NLMSG_ALIGN(hdr->nlmsg_len);
int hdrlen = sizeof(int) + NLMSG_ALIGN(errmsg->msg.nlmsg_len);