[CRIU] [PATCH v2 2/8] add devconfs array to store config options names

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


Signed-off-by: Pavel Tikhomirov <ptikhomirov at parallels.com>
---
 net.c | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/net.c b/net.c
index 206736a..c4c1c84 100644
--- a/net.c
+++ b/net.c
@@ -46,6 +46,40 @@ 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",
+	"mc_forwarding",
+	"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 28
+
 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