[CRIU] [PATCH v4 2/8] add devconfs array to store config options names
Pavel Tikhomirov
ptikhomirov at parallels.com
Wed Oct 8 06:21:36 PDT 2014
Signed-off-by: Pavel Tikhomirov <ptikhomirov at parallels.com>
---
net.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/net.c b/net.c
index 206736a..def4fdc 100644
--- a/net.c
+++ b/net.c
@@ -46,6 +46,39 @@ int read_ns_sys_file(char *path, char *buf, int len)
return rlen;
}
+char *devconfs[] = {
+ "accept_local",
+ "accept_redirects",
+ "accept_source_route",
+ "arp_accept",
+ "arp_announce",
+ "arp_filter",
+ "arp_ignore",
+ "arp_notify",
+ "bootp_relay",
+ "disable_policy",
+ "disable_xfrm",
+ "force_igmp_version",
+ "forwarding",
+ "igmpv2_unsolicited_report_interval",
+ "igmpv3_unsolicited_report_interval",
+ "log_martians",
+ "medium_id",
+ "promote_secondaries",
+ "proxy_arp",
+ "proxy_arp_pvlan",
+ "route_localnet",
+ "rp_filter",
+ "secure_redirects",
+ "send_redirects",
+ "shared_media",
+ "src_valid_mark",
+ "tag",
+ NULL,
+};
+
+#define NET_DEV_CONF_SIZE 27
+
int write_netdev_img(NetDeviceEntry *nde, struct cr_fdset *fds)
{
return pb_write_one(fdset_fd(fds, CR_FD_NETDEV), nde, PB_NETDEV);
--
1.9.3
More information about the CRIU
mailing list