Lines Matching refs:nlh
43 struct nlmsghdr nlh = { in test_nlmsg_type() local
44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type()
48 nlh.nlmsg_type = NFNL_SUBSYS_NFTABLES << 8 | NFT_MSG_NEWTABLE; in test_nlmsg_type()
49 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type()
54 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type()
56 nlh.nlmsg_type = NFNL_SUBSYS_NFTABLES << 8 | 0xff; in test_nlmsg_type()
57 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type()
62 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type()
69 struct nlmsghdr nlh = { in test_nlmsg_flags() local
70 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags()
73 nlh.nlmsg_type = NFNL_SUBSYS_NFTABLES << 8 | NFT_MSG_NEWTABLE; in test_nlmsg_flags()
74 nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_REPLACE; in test_nlmsg_flags()
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_flags()
82 nlh.nlmsg_type = NFNL_SUBSYS_NFTABLES << 8 | NFT_MSG_GETTABLE; in test_nlmsg_flags()
83 nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in test_nlmsg_flags()
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_flags()
91 nlh.nlmsg_type = NFNL_SUBSYS_NFTABLES << 8 | NFT_MSG_DELTABLE; in test_nlmsg_flags()
92 nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_NONREC; in test_nlmsg_flags()
93 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
98 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_flags()