Hi Pablo & all, As discussed, here is the updated version of the "save output format" patches. The main changes since the last series: 1. Adopting upon the latest master changes from Pablo 2. Line parsing logic is taken from the xtables as Pablo suggested 3. The changes made more granular. Thanks & regards, Mikhail Mikhail Sennikovsky (8): conntrack: reset optind in do_parse conntrack: move global options to struct ct_cmd conntrack: per-command entries counters conntrack: introduce ct_cmd_list conntrack: accept commands from file conntrack.8: man update for --load-file support tests: saving and loading ct entries, save format tests: conntrack -L/-D ip family filtering conntrack.8 | 8 + src/conntrack.c | 546 +++++++++++++++++++++------- tests/conntrack/test-conntrack.c | 84 ++++- tests/conntrack/testsuite/08stdin | 80 ++++ tests/conntrack/testsuite/09dumpopt | 147 ++++++++ 5 files changed, 726 insertions(+), 139 deletions(-) create mode 100644 tests/conntrack/testsuite/08stdin create mode 100644 tests/conntrack/testsuite/09dumpopt -- 2.25.1