This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function computeInternetChecksum($in) { | |
// Add an empty char (8-bit). | |
// This trick leverages the way unpack() works. | |
$in .= "\x0"; | |
// The n* format splits up the data string into 16-bit pairs. | |
// It will unpack the string from the beginning, and only split | |
// whole pairs. So it will automatically leave out (or include) the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
langcode: en | |
status: true | |
dependencies: | |
config: | |
- search_api.server.gendev | |
- core.entity_view_mode.node.search_index | |
module: | |
- node | |
- search_api | |
id: gendev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* P I N G . C | |
* | |
* Using the InterNet Control Message Protocol (ICMP) "ECHO" facility, | |
* measure round-trip-delays and packet loss across network paths. | |
* | |
* Author - | |
* Mike Muuss | |
* U. S. Army Ballistic Research Laboratory | |
* December, 1983 |