Lines Matching refs:nm_nlh
274 nm->nm_nlh = calloc(1, len); in __nlmsg_alloc()
275 if (!nm->nm_nlh) in __nlmsg_alloc()
280 nm->nm_nlh->nlmsg_len = nlmsg_total_size(0); in __nlmsg_alloc()
328 struct nlmsghdr *new = nm->nm_nlh; in nlmsg_inherit()
390 memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len); in nlmsg_convert()
409 void *buf = n->nm_nlh; in nlmsg_reserve()
410 size_t nlmsg_len = n->nm_nlh->nlmsg_len; in nlmsg_reserve()
422 n->nm_nlh->nlmsg_len += tlen; in nlmsg_reserve()
428 n, tlen, len, pad, n->nm_nlh->nlmsg_len); in nlmsg_reserve()
480 tmp = realloc(n->nm_nlh, newlen); in nlmsg_expand()
484 n->nm_nlh = tmp; in nlmsg_expand()
511 if (n->nm_nlh->nlmsg_len < NLMSG_HDRLEN) in nlmsg_put()
514 nlh = (struct nlmsghdr *) n->nm_nlh; in nlmsg_put()
541 return n->nm_nlh; in nlmsg_hdr()
574 free(msg->nm_nlh); in nlmsg_free()