From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- forum/utils/ping.php | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 forum/utils/ping.php (limited to 'forum/utils/ping.php') diff --git a/forum/utils/ping.php b/forum/utils/ping.php new file mode 100644 index 0000000..8977df5 --- /dev/null +++ b/forum/utils/ping.php @@ -0,0 +1,126 @@ +> 16) + ($sum & 0xffff); + $sum += ($sum >> 16); + + return pack('n*', ~$sum); +} + +function getLastIcmpError() +{ + global $g_icmp_error; + return $g_icmp_error; +} + +?> \ No newline at end of file -- cgit v1.2.3