iwd/monitor
Denis Kenzior a5f5578a61 monitor: Use nlmon_print_* inside nlmon_receive
The current implementation inside nlmon_receive is asymmetrical.  RTNL
packets are printed using nlmon_print_rtnl while GENL packets are
printed using nlmon_message.

nlmon_print_genl and nlmon_print_rtnl already handle iterating over data
containing multiple messages, and are used by nlmon started in reader
mode.  Use these for better symmetry inside nlmon_receive.

While here, move store_netlink() call into nlmon_print_rtnl.  This makes
handling of PCAP output symmetrical for both RTNL and GENL packets.
This also fixes a possibility where only the first message of a
multi-RTNL packet would be stored.
2024-01-02 10:59:36 -06:00
..
display.c monitor: Use include path from top source directory 2019-12-13 09:04:15 +01:00
display.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
iwmon.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
main.c monitor: remove -F option 2022-10-26 16:48:45 -05:00
nlmon.c monitor: Use nlmon_print_* inside nlmon_receive 2024-01-02 10:59:36 -06:00
nlmon.h monitor: allow parsing pcaps without -F option 2022-10-26 16:48:21 -05:00
pcap.c treewide: fix typos 2020-01-21 16:03:28 -06:00
pcap.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00