Lines Matching refs:nm_nlh
377 nm->nm_nlh = malloc(len); in __nlmsg_alloc()
378 if (!nm->nm_nlh) in __nlmsg_alloc()
381 memset(nm->nm_nlh, 0, sizeof(struct nlmsghdr)); in __nlmsg_alloc()
385 nm->nm_nlh->nlmsg_len = nlmsg_total_size(0); in __nlmsg_alloc()
433 struct nlmsghdr *new = nm->nm_nlh; in nlmsg_inherit()
495 memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len); in nlmsg_convert()
517 void *buf = n->nm_nlh; in nlmsg_reserve()
518 size_t nlmsg_len = n->nm_nlh->nlmsg_len; in nlmsg_reserve()
527 n->nm_nlh->nlmsg_len += tlen; in nlmsg_reserve()
533 n, len, pad, n->nm_nlh->nlmsg_len); in nlmsg_reserve()
585 tmp = realloc(n->nm_nlh, newlen); in nlmsg_expand()
589 n->nm_nlh = tmp; in nlmsg_expand()
616 if (n->nm_nlh->nlmsg_len < NLMSG_HDRLEN) in nlmsg_put()
619 nlh = (struct nlmsghdr *) n->nm_nlh; in nlmsg_put()
646 return n->nm_nlh; in nlmsg_hdr()
679 free(msg->nm_nlh); in nlmsg_free()