summaryrefslogtreecommitdiff
path: root/tests/nfnetlink_cthelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nfnetlink_cthelper.c')
-rw-r--r--tests/nfnetlink_cthelper.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/tests/nfnetlink_cthelper.c b/tests/nfnetlink_cthelper.c
index 860ad2933..90400c089 100644
--- a/tests/nfnetlink_cthelper.c
+++ b/tests/nfnetlink_cthelper.c
@@ -27,17 +27,18 @@ test_nlmsg_type(const int fd)
nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_NEW;
rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
- printf("sendto(%d, {len=%u"
- ", type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_NEW"
- ", flags=NLM_F_REQUEST, seq=0, pid=0}"
+ printf("sendto(%d, {nlmsg_len=%u"
+ ", nlmsg_type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_NEW"
+ ", nlmsg_flags=NLM_F_REQUEST, nlmsg_seq=0, nlmsg_pid=0}"
", %u, MSG_DONTWAIT, NULL, 0) = %s\n",
fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | 0xff;
rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
- printf("sendto(%d, {len=%u"
- ", type=NFNL_SUBSYS_CTHELPER<<8|0xff /* NFNL_MSG_CTHELPER_??? */"
- ", flags=NLM_F_REQUEST, seq=0, pid=0}"
+ printf("sendto(%d, {nlmsg_len=%u"
+ ", nlmsg_type=NFNL_SUBSYS_CTHELPER<<8|0xff"
+ " /* NFNL_MSG_CTHELPER_??? */"
+ ", nlmsg_flags=NLM_F_REQUEST, nlmsg_seq=0, nlmsg_pid=0}"
", %u, MSG_DONTWAIT, NULL, 0) = %s\n",
fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
}
@@ -53,28 +54,28 @@ test_nlmsg_flags(const int fd)
nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_NEW;
nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_REPLACE;
rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
- printf("sendto(%d, {len=%u"
- ", type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_NEW"
- ", flags=NLM_F_REQUEST|NLM_F_REPLACE, seq=0, pid=0}"
- ", %u, MSG_DONTWAIT, NULL, 0) = %s\n",
+ printf("sendto(%d, {nlmsg_len=%u"
+ ", nlmsg_type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_NEW"
+ ", nlmsg_flags=NLM_F_REQUEST|NLM_F_REPLACE, nlmsg_seq=0"
+ ", nlmsg_pid=0}, %u, MSG_DONTWAIT, NULL, 0) = %s\n",
fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_GET;
nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP;
rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
- printf("sendto(%d, {len=%u"
- ", type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_GET"
- ", flags=NLM_F_REQUEST|NLM_F_DUMP, seq=0, pid=0}"
- ", %u, MSG_DONTWAIT, NULL, 0) = %s\n",
+ printf("sendto(%d, {nlmsg_len=%u"
+ ", nlmsg_type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_GET"
+ ", nlmsg_flags=NLM_F_REQUEST|NLM_F_DUMP, nlmsg_seq=0"
+ ", nlmsg_pid=0}, %u, MSG_DONTWAIT, NULL, 0) = %s\n",
fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
nlh.nlmsg_type = NFNL_SUBSYS_CTHELPER << 8 | NFNL_MSG_CTHELPER_DEL;
nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_NONREC;
rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
- printf("sendto(%d, {len=%u"
- ", type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_DEL"
- ", flags=NLM_F_REQUEST|NLM_F_NONREC, seq=0, pid=0}"
- ", %u, MSG_DONTWAIT, NULL, 0) = %s\n",
+ printf("sendto(%d, {nlmsg_len=%u"
+ ", nlmsg_type=NFNL_SUBSYS_CTHELPER<<8|NFNL_MSG_CTHELPER_DEL"
+ ", nlmsg_flags=NLM_F_REQUEST|NLM_F_NONREC, nlmsg_seq=0"
+ ", nlmsg_pid=0}, %u, MSG_DONTWAIT, NULL, 0) = %s\n",
fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
}