[CRIU] [PATCH criu v5 2/7] add devconfs array to store config options names

Pavel Tikhomirov ptikhomirov at parallels.com
Tue Mar 31 00:51:09 PDT 2015


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

diff --git a/net.c b/net.c
index ad314df..04d40de 100644
--- a/net.c
+++ b/net.c
@@ -50,6 +50,37 @@ 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,
+};
+
 int write_netdev_img(NetDeviceEntry *nde, struct cr_imgset *fds)
 {
 	return pb_write_one(img_from_set(fds, CR_FD_NETDEV), nde, PB_NETDEV);
-- 
1.9.3



More information about the CRIU mailing list