Skip to contentSkip to conversation

utils: add minimal nfnlog test case

PATCH New Florian Westphal 1 participant 1 message Jul 13 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 utils: add minimal nfnlog test case

Check that nfulnl_test receives 4 log messages each for ping/ping6 packets.

---
Seems I forgot to send it, I have carried this locally for more than a month :-/

 utils/nfulnl_test.c  |  1 +
 utils/nfulnl_test.sh | 58 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100755 utils/nfulnl_test.sh
utils/nfulnl_test.c +1 -0
index 4f29f1757c81..840c0bea3a86 100644
@@ -121,6 +121,7 @@ int main(int argc, char **argv)
 
 		/* handle messages in just-received packet */
 		nflog_handle_packet(h, buf, rv);
+		fflush(stdout);
 	}
 
 	printf("unbinding from group 100\n");
utils/nfulnl_test.sh new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.54.0