[CRIU] [PATCH v2 0/8] net: add support of network device sysctl config

Pavel Tikhomirov ptikhomirov at parallels.com
Thu Sep 25 01:00:35 PDT 2014


One can set those config options with:
sysctl net.ipv4.conf.<device>.<option>=<value>
and check them with:
cat /proc/sys/net/ipv4/conf/<device>/<option>

description: There are a lot of options like enable and configure
IPSEC, ARP, ICMP, SRR, IGMP, Reverse Path Filtering, redirecting.

https://bugzilla.openvz.org/show_bug.cgi?id=2965

changes:
v2:
include per device conf in net_device_entry,
add per netns entry to hold all and default conf,
invert logic and introduce array of strings,
use criu sysctl engine.
 

Pavel Tikhomirov (8):
  add netns protobuf entry and image, also add conf to net device entry
  add devconfs array to store config options names
  add int(CTL_32)
  save net device confs one by one
  dump netns ipv4 conf all/default
  workaround "mc_forwarding" is not writable
  restore net device ipv4 confs
  restore netns ipv4 conf all/default

 cr-show.c               |   1 +
 image-desc.c            |   1 +
 include/image-desc.h    |   1 +
 include/magic.h         |   1 +
 include/protobuf-desc.h |   1 +
 include/sysctl.h        |   1 +
 net.c                   | 169 +++++++++++++++++++++++++++++++++++++++++++++++-
 protobuf-desc.c         |   1 +
 protobuf/netdev.proto   |   7 ++
 sysctl.c                |   7 ++
 10 files changed, 189 insertions(+), 1 deletion(-)

-- 
1.9.3



More information about the CRIU mailing list