Relative Content

Tag Archive for phpnetworkingipv6

ICMPv6 solicitation request in PHP

$socket = socket_create(AF_INET6, SOCK_RAW, 58); socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array(‘sec’ => 1, ‘usec’ => 0)); $type = chr(135); $code = chr(0); $check = chr(0); $check .= chr(0); $reserverd = chr(0) . chr(0) . chr(0) . chr(0); $distMul = “ff02::1:ff26:13dc”; //solicitation node multicast address $target = “fe80::3b40:f032:5726:13dc”; $id = inet_pton($target); socket_set_option($socket, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 255); $package = $type […]