# icmp_echo_ignore_broadcasts
# default value - 1
# If set non-zero, then the kernel will ignore all 
# ICMP ECHO and TIMESTAMP requests sent to it via broadcast/multicast.

type: txt

help: Policy for handling broadcast IPv4 ICMP echo and timestamp requests

val_help: disable; Disable processing of broadcast IPv4 ICMP echo/timestamp requests
val_help: enable; Enable processing of broadcast IPv4 ICMP echo/timestamp requests

default: "disable"

syntax:expression: $VAR(@) in "enable", "disable"; "broadcast-ping must be enable or disable"

update:
	if [ x$VAR(@) == xenable ]; then
	    sudo sh -c "echo 0 > \
	    	 /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
        else
	    sudo sh -c "echo 1 > \
	    	 /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
	fi

delete:
	sudo sh -c "echo 1 > \
	     /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"

