Lines Matching refs:NLMSG_ALIGN
357 status -= NLMSG_ALIGN(len); in rtnl_talk()
358 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_talk()
384 status -= NLMSG_ALIGN(len); in rtnl_talk()
385 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_talk()
459 status -= NLMSG_ALIGN(len); in rtnl_listen()
460 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_listen()
511 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl); in rtnl_from_file()
532 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) { in addattr32()
540 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; in addattr32()
550 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l()
558 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l()
564 if (NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) { in addraw_l()
570 memset((void *) NLMSG_TAIL(n) + len, 0, NLMSG_ALIGN(len) - len); in addraw_l()
571 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len); in addraw_l()
601 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
621 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32()
639 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in rta_addattr_l()