Lines Matching refs:NLMSG_ALIGN
445 fwrite(buf, 1, NLMSG_ALIGN(status), rth->dump_fp); in rtnl_dump_filter_l()
602 status -= NLMSG_ALIGN(len); in __rtnl_talk()
603 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk()
635 status -= NLMSG_ALIGN(len); in __rtnl_talk()
636 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk()
767 status -= NLMSG_ALIGN(len); in rtnl_listen()
768 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in rtnl_listen()
813 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl); in rtnl_from_file()
866 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l()
877 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l()
883 if (NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) { in addraw_l()
891 memset((void *) NLMSG_TAIL(n) + len, 0, NLMSG_ALIGN(len) - len); in addraw_l()
892 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len); in addraw_l()
922 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
944 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32()
965 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in rta_addattr_l()