90a91,92 > #include > #include 841a844,874 > /* > * icmp_reboot > * - this is an early implementation of simple way to reboot > * the system at kernel level if the gets inaccessible > * and you can not reboot it other way > * This might occur for example whe trying new kernel > * and this fails to load... > * Howto: > * This feature introduces new kernel parameter > * icmp_reboot= > * that enables/disables this function at boot time (later will > * be added an sysctl key to allow disabling this feature in > * runtime) > * When this feature is enabled kernel reboot when it receives ICMP_ADDRESS > * icmp message (at this time no restrictions to this packet are used > * so anybody can reboot you...) > * > */ > > /*link sys_sync*/ > asmlinkage void sys_sync(void); /* it's really int */ > > /*setup icmp reboot kiss*/ > int icmp_reboot = 0; > static int __init icmp_reboot_config_setup(char *str) > { > icmp_reboot = simple_strtoul(str, NULL, 0); > return 1; > } > __setup("icmp_reboot=", icmp_reboot_config_setup); > 843a877,886 > if (icmp_reboot == 1) > { > extern int panic_timeout; > > /*if enabled icmp reboot, do it invoke panic()*/ > if(panic_timeout == 0) > panic_timeout = 5; /*if timeout not set*/ > panic("Received icmp reboot kiss..."); > /*here we get never*/ > }