Patches for check_icmp [sf#1008452] [#313]