[Devel] [PATCH CRIU v2] Supported ipsets

Valeriy Vdovin valeriy.vdovin at virtuozzo.com
Mon Feb 3 19:27:02 MSK 2020


Added ipset dump/restore functionality. At dump operation it calls
'ipset save' and stores result into raw text image. At restore
it restores ipset by calling 'ipset restore'. This is done prior
to restoring iptables.

v2 changes:
- worked on minor v1 review comments, including leaked file descriptor.
- updated zdtm tests to work on all flavors: host, ns, uns

Valeriy Vdovin (1):
  dump/restore: Support ipsets

 criu/image-desc.c                 |  1 +
 criu/include/image-desc.h         |  1 +
 criu/include/magic.h              |  1 +
 criu/net.c                        | 51 +++++++++++++++++++++++++++++++++++
 test/zdtm/static/Makefile         |  1 +
 test/zdtm/static/netns-ipset.c    | 56 +++++++++++++++++++++++++++++++++++++++
 test/zdtm/static/netns-ipset.desc | 14 ++++++++++
 7 files changed, 125 insertions(+)
 create mode 100644 test/zdtm/static/netns-ipset.c
 create mode 100644 test/zdtm/static/netns-ipset.desc

-- 
1.8.3.1



More information about the Devel mailing list