static long syz_sysconfig_set__proc_sys_net_ipv4_conf_sit0_secure_redirects(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/conf/sit0/secure_redirects", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_conf_sit0_secure_redirects() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv4/conf/sit0/secure_redirects"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_conf_sit0_send_redirects(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/conf/sit0/send_redirects", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_conf_sit0_send_redirects() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv4/conf/sit0/send_redirects"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_conf_sit0_shared_media(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/conf/sit0/shared_media", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_conf_sit0_shared_media() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv4/conf/sit0/shared_media"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_conf_sit0_src_valid_mark(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/conf/sit0/src_valid_mark", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_conf_sit0_src_valid_mark() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/conf/sit0/src_valid_mark"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_conf_sit0_tag(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/conf/sit0/tag", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_conf_sit0_tag() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/conf/sit0/tag"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_anycast_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/anycast_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_anycast_delay() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/default/anycast_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_app_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/app_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_app_solicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/default/app_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_base_reachable_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/base_reachable_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_base_reachable_time() { char command[256]; sprintf(command, "echo 30 > /proc/sys/net/ipv4/neigh/default/base_reachable_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_base_reachable_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_base_reachable_time_ms() { char command[256]; sprintf(command, "echo 30000 > /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_delay_first_probe_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/delay_first_probe_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_delay_first_probe_time() { char command[256]; sprintf(command, "echo 5 > /proc/sys/net/ipv4/neigh/default/delay_first_probe_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_gc_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/gc_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_gc_interval() { char command[256]; sprintf(command, "echo 30 > /proc/sys/net/ipv4/neigh/default/gc_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_gc_stale_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/gc_stale_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_gc_stale_time() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv4/neigh/default/gc_stale_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_gc_thresh1(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/gc_thresh1", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_gc_thresh1() { char command[256]; sprintf(command, "echo 128 > /proc/sys/net/ipv4/neigh/default/gc_thresh1"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_gc_thresh2(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/gc_thresh2", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_gc_thresh2() { char command[256]; sprintf(command, "echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh2"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_gc_thresh3(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/gc_thresh3", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_gc_thresh3() { char command[256]; sprintf(command, "echo 1024 > /proc/sys/net/ipv4/neigh/default/gc_thresh3"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_interval_probe_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/interval_probe_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_interval_probe_time_ms() { char command[256]; sprintf(command, "echo 5000 > /proc/sys/net/ipv4/neigh/default/interval_probe_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_locktime(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/locktime", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_locktime() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/default/locktime"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_mcast_resolicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/mcast_resolicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_mcast_resolicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/default/mcast_resolicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_mcast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/mcast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_mcast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/default/mcast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_proxy_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/proxy_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_proxy_delay() { char command[256]; sprintf(command, "echo 80 > /proc/sys/net/ipv4/neigh/default/proxy_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_proxy_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/proxy_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_proxy_qlen() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv4/neigh/default/proxy_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_retrans_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/retrans_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_retrans_time() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/default/retrans_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_retrans_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/retrans_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_retrans_time_ms() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv4/neigh/default/retrans_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_ucast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/ucast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_ucast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/default/ucast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_unres_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/unres_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_unres_qlen() { char command[256]; sprintf(command, "echo 101 > /proc/sys/net/ipv4/neigh/default/unres_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_default_unres_qlen_bytes(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/default/unres_qlen_bytes", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_default_unres_qlen_bytes() { char command[256]; sprintf(command, "echo 212992 > /proc/sys/net/ipv4/neigh/default/unres_qlen_bytes"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_anycast_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/anycast_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_anycast_delay() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/eth0/anycast_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_app_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/app_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_app_solicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/eth0/app_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_base_reachable_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/base_reachable_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_base_reachable_time() { char command[256]; sprintf(command, "echo 30 > /proc/sys/net/ipv4/neigh/eth0/base_reachable_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_base_reachable_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/base_reachable_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_base_reachable_time_ms() { char command[256]; sprintf(command, "echo 30000 > /proc/sys/net/ipv4/neigh/eth0/base_reachable_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_delay_first_probe_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/delay_first_probe_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_delay_first_probe_time() { char command[256]; sprintf(command, "echo 5 > /proc/sys/net/ipv4/neigh/eth0/delay_first_probe_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_gc_stale_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/gc_stale_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_gc_stale_time() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv4/neigh/eth0/gc_stale_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_interval_probe_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/interval_probe_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_interval_probe_time_ms() { char command[256]; sprintf(command, "echo 5000 > /proc/sys/net/ipv4/neigh/eth0/interval_probe_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_locktime(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/locktime", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_locktime() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/eth0/locktime"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_mcast_resolicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/mcast_resolicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_mcast_resolicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/eth0/mcast_resolicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_mcast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/mcast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_mcast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/eth0/mcast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_proxy_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/proxy_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_proxy_delay() { char command[256]; sprintf(command, "echo 80 > /proc/sys/net/ipv4/neigh/eth0/proxy_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_proxy_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/proxy_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_proxy_qlen() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv4/neigh/eth0/proxy_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_retrans_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/retrans_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_retrans_time() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/eth0/retrans_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_retrans_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/retrans_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_retrans_time_ms() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv4/neigh/eth0/retrans_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_ucast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/ucast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_ucast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/eth0/ucast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_unres_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/unres_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_unres_qlen() { char command[256]; sprintf(command, "echo 101 > /proc/sys/net/ipv4/neigh/eth0/unres_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_eth0_unres_qlen_bytes(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/eth0/unres_qlen_bytes", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_eth0_unres_qlen_bytes() { char command[256]; sprintf(command, "echo 212992 > /proc/sys/net/ipv4/neigh/eth0/unres_qlen_bytes"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_anycast_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/anycast_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_anycast_delay() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/lo/anycast_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_app_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/app_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_app_solicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/lo/app_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_base_reachable_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/base_reachable_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_base_reachable_time() { char command[256]; sprintf(command, "echo 30 > /proc/sys/net/ipv4/neigh/lo/base_reachable_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_base_reachable_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/base_reachable_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_base_reachable_time_ms() { char command[256]; sprintf(command, "echo 30000 > /proc/sys/net/ipv4/neigh/lo/base_reachable_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_delay_first_probe_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/delay_first_probe_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_delay_first_probe_time() { char command[256]; sprintf(command, "echo 5 > /proc/sys/net/ipv4/neigh/lo/delay_first_probe_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_gc_stale_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/gc_stale_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_gc_stale_time() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv4/neigh/lo/gc_stale_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_interval_probe_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/interval_probe_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_interval_probe_time_ms() { char command[256]; sprintf(command, "echo 5000 > /proc/sys/net/ipv4/neigh/lo/interval_probe_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_locktime(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/locktime", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_locktime() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/lo/locktime"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_mcast_resolicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/mcast_resolicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_mcast_resolicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/lo/mcast_resolicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_mcast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/mcast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_mcast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/lo/mcast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_proxy_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/proxy_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_proxy_delay() { char command[256]; sprintf(command, "echo 80 > /proc/sys/net/ipv4/neigh/lo/proxy_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_proxy_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/proxy_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_proxy_qlen() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv4/neigh/lo/proxy_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_retrans_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/retrans_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_retrans_time() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/lo/retrans_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_retrans_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/retrans_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_retrans_time_ms() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv4/neigh/lo/retrans_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_ucast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/ucast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_ucast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/lo/ucast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_unres_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/unres_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_unres_qlen() { char command[256]; sprintf(command, "echo 101 > /proc/sys/net/ipv4/neigh/lo/unres_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_lo_unres_qlen_bytes(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/lo/unres_qlen_bytes", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_lo_unres_qlen_bytes() { char command[256]; sprintf(command, "echo 212992 > /proc/sys/net/ipv4/neigh/lo/unres_qlen_bytes"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_anycast_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/anycast_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_anycast_delay() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/sit0/anycast_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_app_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/app_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_app_solicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/sit0/app_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_base_reachable_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/base_reachable_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_base_reachable_time() { char command[256]; sprintf(command, "echo 30 > /proc/sys/net/ipv4/neigh/sit0/base_reachable_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_base_reachable_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/base_reachable_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_base_reachable_time_ms() { char command[256]; sprintf(command, "echo 30000 > /proc/sys/net/ipv4/neigh/sit0/base_reachable_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_delay_first_probe_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/delay_first_probe_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_delay_first_probe_time() { char command[256]; sprintf(command, "echo 5 > /proc/sys/net/ipv4/neigh/sit0/delay_first_probe_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_gc_stale_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/gc_stale_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_gc_stale_time() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv4/neigh/sit0/gc_stale_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_interval_probe_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/interval_probe_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_interval_probe_time_ms() { char command[256]; sprintf(command, "echo 5000 > /proc/sys/net/ipv4/neigh/sit0/interval_probe_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_locktime(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/locktime", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_locktime() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/sit0/locktime"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_mcast_resolicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/mcast_resolicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_mcast_resolicit() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/neigh/sit0/mcast_resolicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_mcast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/mcast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_mcast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/sit0/mcast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_proxy_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/proxy_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_proxy_delay() { char command[256]; sprintf(command, "echo 80 > /proc/sys/net/ipv4/neigh/sit0/proxy_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_proxy_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/proxy_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_proxy_qlen() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv4/neigh/sit0/proxy_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_retrans_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/retrans_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_retrans_time() { char command[256]; sprintf(command, "echo 100 > /proc/sys/net/ipv4/neigh/sit0/retrans_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_retrans_time_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/retrans_time_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_retrans_time_ms() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv4/neigh/sit0/retrans_time_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_ucast_solicit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/ucast_solicit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_ucast_solicit() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv4/neigh/sit0/ucast_solicit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_unres_qlen(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/unres_qlen", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_unres_qlen() { char command[256]; sprintf(command, "echo 101 > /proc/sys/net/ipv4/neigh/sit0/unres_qlen"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_neigh_sit0_unres_qlen_bytes(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/neigh/sit0/unres_qlen_bytes", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_neigh_sit0_unres_qlen_bytes() { char command[256]; sprintf(command, "echo 212992 > /proc/sys/net/ipv4/neigh/sit0/unres_qlen_bytes"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_error_burst(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/error_burst", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_error_burst() { char command[256]; sprintf(command, "echo 5000 > /proc/sys/net/ipv4/route/error_burst"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_error_cost(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/error_cost", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_error_cost() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv4/route/error_cost"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_gc_elasticity(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/gc_elasticity", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_gc_elasticity() { char command[256]; sprintf(command, "echo 8 > /proc/sys/net/ipv4/route/gc_elasticity"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_gc_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/gc_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_gc_interval() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv4/route/gc_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_gc_min_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/gc_min_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_gc_min_interval() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv4/route/gc_min_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_gc_min_interval_ms(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/gc_min_interval_ms", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_gc_min_interval_ms() { char command[256]; sprintf(command, "echo 500 > /proc/sys/net/ipv4/route/gc_min_interval_ms"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_gc_timeout(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/gc_timeout", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_gc_timeout() { char command[256]; sprintf(command, "echo 300 > /proc/sys/net/ipv4/route/gc_timeout"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_max_size(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/max_size", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_max_size() { char command[256]; sprintf(command, "echo 2147483647 > /proc/sys/net/ipv4/route/max_size"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_min_adv_mss(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/min_adv_mss", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_min_adv_mss() { char command[256]; sprintf(command, "echo 256 > /proc/sys/net/ipv4/route/min_adv_mss"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_min_pmtu(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/min_pmtu", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_min_pmtu() { char command[256]; sprintf(command, "echo 552 > /proc/sys/net/ipv4/route/min_pmtu"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_mtu_expires(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/mtu_expires", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_mtu_expires() { char command[256]; sprintf(command, "echo 600 > /proc/sys/net/ipv4/route/mtu_expires"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_redirect_load(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/redirect_load", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_redirect_load() { char command[256]; sprintf(command, "echo 20 > /proc/sys/net/ipv4/route/redirect_load"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_redirect_number(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/redirect_number", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_redirect_number() { char command[256]; sprintf(command, "echo 9 > /proc/sys/net/ipv4/route/redirect_number"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv4_route_redirect_silence(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv4/route/redirect_silence", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv4_route_redirect_silence() { char command[256]; sprintf(command, "echo 20480 > /proc/sys/net/ipv4/route/redirect_silence"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_anycast_src_echo_reply(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/anycast_src_echo_reply", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_anycast_src_echo_reply() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/anycast_src_echo_reply"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_auto_flowlabels(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/auto_flowlabels", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_auto_flowlabels() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/auto_flowlabels"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_bindv6only(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/bindv6only", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_bindv6only() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/bindv6only"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_calipso_cache_bucket_size(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/calipso_cache_bucket_size", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_calipso_cache_bucket_size() { char command[256]; sprintf(command, "echo 10 > /proc/sys/net/ipv6/calipso_cache_bucket_size"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_calipso_cache_enable(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/calipso_cache_enable", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_calipso_cache_enable() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/calipso_cache_enable"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_fib_multipath_hash_fields(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/fib_multipath_hash_fields", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_fib_multipath_hash_fields() { char command[256]; sprintf(command, "echo 7 > /proc/sys/net/ipv6/fib_multipath_hash_fields"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_fib_multipath_hash_policy(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/fib_multipath_hash_policy", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_fib_multipath_hash_policy() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/fib_multipath_hash_policy"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_fib_notify_on_flag_change(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/fib_notify_on_flag_change", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_fib_notify_on_flag_change() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/fib_notify_on_flag_change"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_flowlabel_consistency(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/flowlabel_consistency", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_flowlabel_consistency() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/flowlabel_consistency"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_flowlabel_reflect(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/flowlabel_reflect", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_flowlabel_reflect() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/flowlabel_reflect"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_flowlabel_state_ranges(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/flowlabel_state_ranges", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_flowlabel_state_ranges() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/flowlabel_state_ranges"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_fwmark_reflect(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/fwmark_reflect", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_fwmark_reflect() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/fwmark_reflect"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_idgen_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/idgen_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_idgen_delay() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/idgen_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_idgen_retries(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/idgen_retries", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_idgen_retries() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv6/idgen_retries"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ioam6_id(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ioam6_id", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ioam6_id() { char command[256]; sprintf(command, "echo 16777215 > /proc/sys/net/ipv6/ioam6_id"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ioam6_id_wide(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ioam6_id_wide", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ioam6_id_wide() { char command[256]; sprintf(command, "echo 72057594037927935 > /proc/sys/net/ipv6/ioam6_id_wide"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ip6frag_high_thresh(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ip6frag_high_thresh", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ip6frag_high_thresh() { char command[256]; sprintf(command, "echo 4194304 > /proc/sys/net/ipv6/ip6frag_high_thresh"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ip6frag_low_thresh(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ip6frag_low_thresh", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ip6frag_low_thresh() { char command[256]; sprintf(command, "echo 3145728 > /proc/sys/net/ipv6/ip6frag_low_thresh"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ip6frag_secret_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ip6frag_secret_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ip6frag_secret_interval() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/ip6frag_secret_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ip6frag_time(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ip6frag_time", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ip6frag_time() { char command[256]; sprintf(command, "echo 60 > /proc/sys/net/ipv6/ip6frag_time"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_ip_nonlocal_bind(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/ip_nonlocal_bind", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_ip_nonlocal_bind() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/ip_nonlocal_bind"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_max_dst_opts_length(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/max_dst_opts_length", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_max_dst_opts_length() { char command[256]; sprintf(command, "echo 2147483647 > /proc/sys/net/ipv6/max_dst_opts_length"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_max_dst_opts_number(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/max_dst_opts_number", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_max_dst_opts_number() { char command[256]; sprintf(command, "echo 8 > /proc/sys/net/ipv6/max_dst_opts_number"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_max_hbh_length(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/max_hbh_length", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_max_hbh_length() { char command[256]; sprintf(command, "echo 2147483647 > /proc/sys/net/ipv6/max_hbh_length"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_max_hbh_opts_number(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/max_hbh_opts_number", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_max_hbh_opts_number() { char command[256]; sprintf(command, "echo 8 > /proc/sys/net/ipv6/max_hbh_opts_number"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_mld_max_msf(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/mld_max_msf", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_mld_max_msf() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv6/mld_max_msf"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_mld_qrv(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/mld_qrv", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_mld_qrv() { char command[256]; sprintf(command, "echo 2 > /proc/sys/net/ipv6/mld_qrv"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_seg6_flowlabel(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/seg6_flowlabel", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_seg6_flowlabel() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/seg6_flowlabel"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_xfrm6_gc_thresh(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/xfrm6_gc_thresh", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_xfrm6_gc_thresh() { char command[256]; sprintf(command, "echo 32768 > /proc/sys/net/ipv6/xfrm6_gc_thresh"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_dad(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_dad", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_dad() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/accept_dad"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_defrtr(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_defrtr", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_defrtr() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_defrtr"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_from_local(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_from_local", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_from_local() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra_from_local"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_min_hop_limit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_min_hop_limit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_min_hop_limit() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_min_hop_limit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_min_lft(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_min_lft", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_min_lft() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra_min_lft"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_mtu(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_mtu", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_mtu() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_mtu"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_ra_pinfo(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_ra_pinfo", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_ra_pinfo() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_pinfo"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_redirects(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_redirects", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_redirects() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_source_route(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_source_route", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_source_route() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/accept_source_route"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_accept_untracked_na(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/accept_untracked_na", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_accept_untracked_na() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/accept_untracked_na"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_addr_gen_mode(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/addr_gen_mode", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_addr_gen_mode() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/addr_gen_mode"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_autoconf(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/autoconf", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_autoconf() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/autoconf"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_dad_transmits(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/dad_transmits", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_dad_transmits() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/dad_transmits"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_disable_ipv6(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/disable_ipv6", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_disable_ipv6() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_disable_policy(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/disable_policy", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_disable_policy() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/disable_policy"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_drop_unicast_in_l2_multicast(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/drop_unicast_in_l2_multicast", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_drop_unicast_in_l2_multicast() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/drop_unicast_in_l2_multicast"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_drop_unsolicited_na(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/drop_unsolicited_na", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_drop_unsolicited_na() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/drop_unsolicited_na"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_enhanced_dad(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/enhanced_dad", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_enhanced_dad() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/enhanced_dad"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_force_mld_version(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/force_mld_version", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_force_mld_version() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/force_mld_version"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_force_tllao(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/force_tllao", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_force_tllao() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/force_tllao"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_forwarding(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/forwarding", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_forwarding() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/forwarding"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_hop_limit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/hop_limit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_hop_limit() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv6/conf/all/hop_limit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ignore_routes_with_linkdown(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ignore_routes_with_linkdown", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ignore_routes_with_linkdown() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ignore_routes_with_linkdown"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ioam6_enabled(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ioam6_enabled", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ioam6_enabled() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ioam6_enabled"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ioam6_id(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ioam6_id", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ioam6_id() { char command[256]; sprintf(command, "echo 65535 > /proc/sys/net/ipv6/conf/all/ioam6_id"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ioam6_id_wide(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ioam6_id_wide", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ioam6_id_wide() { char command[256]; sprintf(command, "echo 4294967295 > /proc/sys/net/ipv6/conf/all/ioam6_id_wide"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_keep_addr_on_down(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/keep_addr_on_down", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_keep_addr_on_down() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/keep_addr_on_down"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_max_addresses(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/max_addresses", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_max_addresses() { char command[256]; sprintf(command, "echo 16 > /proc/sys/net/ipv6/conf/all/max_addresses"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_max_desync_factor(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/max_desync_factor", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_max_desync_factor() { char command[256]; sprintf(command, "echo 600 > /proc/sys/net/ipv6/conf/all/max_desync_factor"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_mldv1_unsolicited_report_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/mldv1_unsolicited_report_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_mldv1_unsolicited_report_interval() { char command[256]; sprintf(command, "echo 10000 > /proc/sys/net/ipv6/conf/all/mldv1_unsolicited_report_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_mldv2_unsolicited_report_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/mldv2_unsolicited_report_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_mldv2_unsolicited_report_interval() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv6/conf/all/mldv2_unsolicited_report_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_mtu(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/mtu", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_mtu() { char command[256]; sprintf(command, "echo 1280 > /proc/sys/net/ipv6/conf/all/mtu"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ndisc_evict_nocarrier(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ndisc_evict_nocarrier", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ndisc_evict_nocarrier() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/ndisc_evict_nocarrier"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ndisc_notify(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ndisc_notify", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ndisc_notify() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ndisc_notify"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ndisc_tclass(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ndisc_tclass", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ndisc_tclass() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ndisc_tclass"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_proxy_ndp(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/proxy_ndp", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_proxy_ndp() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/proxy_ndp"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ra_defrtr_metric(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ra_defrtr_metric", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ra_defrtr_metric() { char command[256]; sprintf(command, "echo 1024 > /proc/sys/net/ipv6/conf/all/ra_defrtr_metric"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ra_honor_pio_life(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ra_honor_pio_life", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ra_honor_pio_life() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ra_honor_pio_life"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_ra_honor_pio_pflag(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/ra_honor_pio_pflag", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_ra_honor_pio_pflag() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/ra_honor_pio_pflag"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_regen_max_retry(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/regen_max_retry", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_regen_max_retry() { char command[256]; sprintf(command, "echo 3 > /proc/sys/net/ipv6/conf/all/regen_max_retry"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_regen_min_advance(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/regen_min_advance", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_regen_min_advance() { char command[256]; sprintf(command, "echo 2 > /proc/sys/net/ipv6/conf/all/regen_min_advance"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_router_solicitation_delay(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/router_solicitation_delay", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_router_solicitation_delay() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/router_solicitation_delay"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_router_solicitation_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/router_solicitation_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_router_solicitation_interval() { char command[256]; sprintf(command, "echo 4 > /proc/sys/net/ipv6/conf/all/router_solicitation_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_router_solicitation_max_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/router_solicitation_max_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_router_solicitation_max_interval() { char command[256]; sprintf(command, "echo 3600 > /proc/sys/net/ipv6/conf/all/router_solicitation_max_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_rpl_seg_enabled(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/rpl_seg_enabled", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_rpl_seg_enabled() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/rpl_seg_enabled"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_seg6_enabled(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/seg6_enabled", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_seg6_enabled() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/seg6_enabled"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_suppress_frag_ndisc(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/suppress_frag_ndisc", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_suppress_frag_ndisc() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/all/suppress_frag_ndisc"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_temp_prefered_lft(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/temp_prefered_lft", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_temp_prefered_lft() { char command[256]; sprintf(command, "echo 86400 > /proc/sys/net/ipv6/conf/all/temp_prefered_lft"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_temp_valid_lft(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/temp_valid_lft", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_temp_valid_lft() { char command[256]; sprintf(command, "echo 604800 > /proc/sys/net/ipv6/conf/all/temp_valid_lft"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_use_oif_addrs_only(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/use_oif_addrs_only", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_use_oif_addrs_only() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/use_oif_addrs_only"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_all_use_tempaddr(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/all/use_tempaddr", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_all_use_tempaddr() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/all/use_tempaddr"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_dad(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_dad", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_dad() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_dad"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_defrtr(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_defrtr() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_from_local(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_from_local", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_from_local() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra_from_local"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_min_hop_limit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_min_hop_limit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_min_hop_limit() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_min_hop_limit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_min_lft(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_min_lft", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_min_lft() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra_min_lft"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_mtu(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_mtu", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_mtu() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_mtu"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_ra_pinfo(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_ra_pinfo", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_ra_pinfo() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_pinfo"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_redirects(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_redirects", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_redirects() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/accept_redirects"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_source_route(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_source_route", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_source_route() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/accept_source_route"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_accept_untracked_na(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/accept_untracked_na", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_accept_untracked_na() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/accept_untracked_na"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_addr_gen_mode(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/addr_gen_mode", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_addr_gen_mode() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/addr_gen_mode"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_autoconf(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/autoconf", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_autoconf() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/autoconf"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_dad_transmits(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/dad_transmits", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_dad_transmits() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/dad_transmits"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_disable_ipv6(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/disable_ipv6", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_disable_ipv6() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/disable_ipv6"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_disable_policy(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/disable_policy", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_disable_policy() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/disable_policy"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_drop_unicast_in_l2_multicast(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/drop_unicast_in_l2_multicast", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_drop_unicast_in_l2_multicast() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/drop_unicast_in_l2_multicast"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_drop_unsolicited_na(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/drop_unsolicited_na", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_drop_unsolicited_na() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/drop_unsolicited_na"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_enhanced_dad(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/enhanced_dad", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_enhanced_dad() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/enhanced_dad"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_force_mld_version(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/force_mld_version", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_force_mld_version() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/force_mld_version"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_force_tllao(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/force_tllao", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_force_tllao() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/force_tllao"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_forwarding(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/forwarding", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_forwarding() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/forwarding"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_hop_limit(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/hop_limit", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_hop_limit() { char command[256]; sprintf(command, "echo 64 > /proc/sys/net/ipv6/conf/default/hop_limit"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ignore_routes_with_linkdown(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ignore_routes_with_linkdown", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ignore_routes_with_linkdown() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/ignore_routes_with_linkdown"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ioam6_enabled(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ioam6_enabled", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ioam6_enabled() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/ioam6_enabled"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ioam6_id(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ioam6_id", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ioam6_id() { char command[256]; sprintf(command, "echo 65535 > /proc/sys/net/ipv6/conf/default/ioam6_id"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ioam6_id_wide(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ioam6_id_wide", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ioam6_id_wide() { char command[256]; sprintf(command, "echo 4294967295 > /proc/sys/net/ipv6/conf/default/ioam6_id_wide"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_keep_addr_on_down(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/keep_addr_on_down", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_keep_addr_on_down() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/keep_addr_on_down"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_max_addresses(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/max_addresses", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_max_addresses() { char command[256]; sprintf(command, "echo 16 > /proc/sys/net/ipv6/conf/default/max_addresses"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_max_desync_factor(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/max_desync_factor", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_max_desync_factor() { char command[256]; sprintf(command, "echo 600 > /proc/sys/net/ipv6/conf/default/max_desync_factor"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_mldv1_unsolicited_report_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/mldv1_unsolicited_report_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_mldv1_unsolicited_report_interval() { char command[256]; sprintf(command, "echo 10000 > /proc/sys/net/ipv6/conf/default/mldv1_unsolicited_report_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_mldv2_unsolicited_report_interval(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/mldv2_unsolicited_report_interval", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_mldv2_unsolicited_report_interval() { char command[256]; sprintf(command, "echo 1000 > /proc/sys/net/ipv6/conf/default/mldv2_unsolicited_report_interval"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_mtu(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/mtu", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_mtu() { char command[256]; sprintf(command, "echo 1280 > /proc/sys/net/ipv6/conf/default/mtu"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ndisc_evict_nocarrier(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ndisc_evict_nocarrier", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ndisc_evict_nocarrier() { char command[256]; sprintf(command, "echo 1 > /proc/sys/net/ipv6/conf/default/ndisc_evict_nocarrier"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ndisc_notify(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ndisc_notify", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ndisc_notify() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/ndisc_notify"); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_set__proc_sys_net_ipv6_conf_default_ndisc_tclass(volatile long val) { char command[256]; sprintf(command, "echo %ld > /proc/sys/net/ipv6/conf/default/ndisc_tclass", val); int ret = system(command); if (ret != 0) { return 0; } return 0; } static long syz_sysconfig_reset__proc_sys_net_ipv6_conf_default_ndisc_tclass() { char command[256]; sprintf(command, "echo 0 > /proc/sys/net/ipv6/conf/default/ndisc_tclass"); int ret = system(command); if (ret != 0) { return 0; } return 0; }