summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.c
diff options
context:
space:
mode:
authorJacob Hansen <jhansen@op5.com>2018-12-03 14:23:58 (GMT)
committerJacob Hansen <jhansen@op5.com>2018-12-07 09:51:21 (GMT)
commite5eccb663efb40c010ed608f5900b341592cfa68 (patch)
treeea97db977d3ff4b6cbaf9c0f33965867f406e71f /plugins-root/check_icmp.c
parente3ade3374a99155c8c70d89a8d8116240d5c8df0 (diff)
downloadmonitoring-plugins-e5eccb663efb40c010ed608f5900b341592cfa68.tar.gz
check_icmp: removed outcommented code
Signed-off-by: Jacob Hansen <jhansen@op5.com>
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r--plugins-root/check_icmp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index b978ee1..749e2d4 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -592,13 +592,6 @@ main(int argc, char **argv)
592 sockets |= HAVE_ICMP; 592 sockets |= HAVE_ICMP;
593 else icmp_sockerrno = errno; 593 else icmp_sockerrno = errno;
594 594
595 /* if((udp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1) */
596 /* sockets |= HAVE_UDP; */
597 /* else udp_sockerrno = errno; */
598
599 /* if((tcp_sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) != -1) */
600 /* sockets |= HAVE_TCP; */
601 /* else tcp_sockerrno = errno; */
602 595
603#ifdef SO_TIMESTAMP 596#ifdef SO_TIMESTAMP
604 if(setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on))) 597 if(setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on)))