/external/strace/tests-mx32/ |
D | netlink_protocol.c | 50 struct nlmsghdr nlh; in send_query() member 53 .nlh = { in send_query() 96 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 100 req->nlh.nlmsg_len = sizeof(req->nlh); in send_query() 101 rc = sendto(fd, &req->nlh, sizeof(req->nlh), MSG_DONTWAIT, NULL, 0); in send_query() 104 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 105 (unsigned) sizeof(req->nlh), sprintrc(rc)); in send_query() 108 req->nlh.nlmsg_len = sizeof(*req) + 8; in send_query() 113 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 117 req->nlh.nlmsg_len = 8; in send_query() [all …]
|
D | netlink_xfrm.c | 41 struct nlmsghdr nlh = { in test_nlmsg_type() local 42 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 47 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 51 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_type() 58 struct nlmsghdr nlh = { in test_nlmsg_flags() local 59 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() 62 nlh.nlmsg_type = XFRM_MSG_GETSA; in test_nlmsg_flags() 63 nlh.nlmsg_flags = NLM_F_DUMP; in test_nlmsg_flags() 64 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags() 68 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags() [all …]
|
D | nfnetlink_acct.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_ACCT << 8 | NFNL_MSG_ACCT_NEW; 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_ACCT << 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() [all …]
|
D | nfnetlink_ctnetlink.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK << 8 | IPCTNL_MSG_CT_NEW; 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_CTNETLINK << 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() [all …]
|
D | nfnetlink_cttimeout.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = in test_nlmsg_type() 50 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 55 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 57 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_TIMEOUT << 8 | 0xff; in test_nlmsg_type() 58 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 63 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 70 struct nlmsghdr nlh = { in test_nlmsg_flags() local 71 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() [all …]
|
D | nfnetlink_ctnetlink_exp.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_EXP << 8 | IPCTNL_MSG_EXP_NEW; 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_CTNETLINK_EXP << 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() [all …]
|
D | nfnetlink_nftables.c | 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() [all …]
|
D | nfnetlink_cthelper.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_NEW; 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_CTHELPER << 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() [all …]
|
/external/strace/tests-m32/ |
D | netlink_protocol.c | 50 struct nlmsghdr nlh; in send_query() member 53 .nlh = { in send_query() 96 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 100 req->nlh.nlmsg_len = sizeof(req->nlh); in send_query() 101 rc = sendto(fd, &req->nlh, sizeof(req->nlh), MSG_DONTWAIT, NULL, 0); in send_query() 104 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 105 (unsigned) sizeof(req->nlh), sprintrc(rc)); in send_query() 108 req->nlh.nlmsg_len = sizeof(*req) + 8; in send_query() 113 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 117 req->nlh.nlmsg_len = 8; in send_query() [all …]
|
D | netlink_xfrm.c | 41 struct nlmsghdr nlh = { in test_nlmsg_type() local 42 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 47 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 51 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_type() 58 struct nlmsghdr nlh = { in test_nlmsg_flags() local 59 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() 62 nlh.nlmsg_type = XFRM_MSG_GETSA; in test_nlmsg_flags() 63 nlh.nlmsg_flags = NLM_F_DUMP; in test_nlmsg_flags() 64 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags() 68 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags() [all …]
|
D | nfnetlink_ctnetlink.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK << 8 | IPCTNL_MSG_CT_NEW; 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_CTNETLINK << 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() [all …]
|
D | nfnetlink_cthelper.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_NEW; 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_CTHELPER << 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() [all …]
|
D | nfnetlink_acct.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_ACCT << 8 | NFNL_MSG_ACCT_NEW; 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_ACCT << 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() [all …]
|
D | nfnetlink_cttimeout.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = in test_nlmsg_type() 50 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 55 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 57 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_TIMEOUT << 8 | 0xff; in test_nlmsg_type() 58 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 63 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 70 struct nlmsghdr nlh = { in test_nlmsg_flags() local 71 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() [all …]
|
D | nfnetlink_ctnetlink_exp.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_EXP << 8 | IPCTNL_MSG_EXP_NEW; 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_CTNETLINK_EXP << 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() [all …]
|
D | nfnetlink_nftables.c | 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() [all …]
|
/external/strace/tests/ |
D | netlink_protocol.c | 50 struct nlmsghdr nlh; in send_query() member 53 .nlh = { in send_query() 96 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 100 req->nlh.nlmsg_len = sizeof(req->nlh); in send_query() 101 rc = sendto(fd, &req->nlh, sizeof(req->nlh), MSG_DONTWAIT, NULL, 0); in send_query() 104 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 105 (unsigned) sizeof(req->nlh), sprintrc(rc)); in send_query() 108 req->nlh.nlmsg_len = sizeof(*req) + 8; in send_query() 113 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query() 117 req->nlh.nlmsg_len = 8; in send_query() [all …]
|
D | netlink_xfrm.c | 41 struct nlmsghdr nlh = { in test_nlmsg_type() local 42 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 47 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 51 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_type() 58 struct nlmsghdr nlh = { in test_nlmsg_flags() local 59 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() 62 nlh.nlmsg_type = XFRM_MSG_GETSA; in test_nlmsg_flags() 63 nlh.nlmsg_flags = NLM_F_DUMP; in test_nlmsg_flags() 64 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags() 68 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags() [all …]
|
D | nfnetlink_acct.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_ACCT << 8 | NFNL_MSG_ACCT_NEW; 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_ACCT << 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() [all …]
|
D | nfnetlink_ctnetlink_exp.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_EXP << 8 | IPCTNL_MSG_EXP_NEW; 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_CTNETLINK_EXP << 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() [all …]
|
D | nfnetlink_cttimeout.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = in test_nlmsg_type() 50 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 55 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 57 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK_TIMEOUT << 8 | 0xff; in test_nlmsg_type() 58 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_type() 63 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); in test_nlmsg_type() 70 struct nlmsghdr nlh = { in test_nlmsg_flags() local 71 .nlmsg_len = sizeof(nlh), in test_nlmsg_flags() [all …]
|
D | nfnetlink_cthelper.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_NEW; 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_CTHELPER << 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() [all …]
|
D | nfnetlink_ctnetlink.c | 43 struct nlmsghdr nlh = { in test_nlmsg_type() local 44 .nlmsg_len = sizeof(nlh), in test_nlmsg_type() 48 nlh.nlmsg_type = NFNL_SUBSYS_CTNETLINK << 8 | IPCTNL_MSG_CT_NEW; 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_CTNETLINK << 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() [all …]
|
D | nfnetlink_nftables.c | 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() [all …]
|
/external/libnetfilter_conntrack/src/conntrack/ |
D | build_mnl.c | 17 nfct_build_tuple_ip(struct nlmsghdr *nlh, const struct __nfct_tuple *t) in nfct_build_tuple_ip() argument 21 nest = mnl_attr_nest_start(nlh, CTA_TUPLE_IP); in nfct_build_tuple_ip() 27 mnl_attr_put_u32(nlh, CTA_IP_V4_SRC, t->src.v4); in nfct_build_tuple_ip() 28 mnl_attr_put_u32(nlh, CTA_IP_V4_DST, t->dst.v4); in nfct_build_tuple_ip() 31 mnl_attr_put(nlh, CTA_IP_V6_SRC, sizeof(struct in6_addr), in nfct_build_tuple_ip() 33 mnl_attr_put(nlh, CTA_IP_V6_DST, sizeof(struct in6_addr), in nfct_build_tuple_ip() 37 mnl_attr_nest_cancel(nlh, nest); in nfct_build_tuple_ip() 40 mnl_attr_nest_end(nlh, nest); in nfct_build_tuple_ip() 45 nfct_build_tuple_proto(struct nlmsghdr *nlh, const struct __nfct_tuple *t) in nfct_build_tuple_proto() argument 49 nest = mnl_attr_nest_start(nlh, CTA_TUPLE_PROTO); in nfct_build_tuple_proto() [all …]
|