Home | History | Annotate | Download | only in examples

Lines Matching refs:nlh

12 static int data_cb(const struct nlmsghdr *nlh, void *data)
21 nfct_nlmsg_parse(nlh, ct);
34 struct nlmsghdr *nlh;
53 nlh = mnl_nlmsg_put_header(buf);
54 nlh->nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_GET;
55 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK;
56 nlh->nlmsg_seq = seq = time(NULL);
58 nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg));
77 nfct_nlmsg_build(nlh, ct);
79 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len);