mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
add devconfs array to store config options names
Signed-off-by: Pavel Tikhomirov <ptikhomirov@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
2b49efeaf3
commit
e700fe93f6
31
net.c
31
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);
|
||||
|
Reference in New Issue
Block a user