⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
NetAddr-IP-4.079-0
/
Lite
/
t
/
View File Name :
over_math.t
#use diagnostics; use NetAddr::IP::Lite; $| = 1; print "1..7\n"; my $test = 1; sub ok() { print 'ok ',$test++,"\n"; } my $ip = new NetAddr::IP::Lite('0.0.0.4/24'); ## test '+' my $exp = '0.0.0.132/24'; my $nip = $ip + 128; print 'got: ',$nip," exp: $exp\nnot " unless $nip eq $exp; &ok; ## test '+' wrap around $nip = $ip + 257; $exp = '0.0.0.5/24'; print 'got: ',$nip," exp: $exp\nnot " unless $nip eq $exp; &ok; ## test '-' and wrap $nip = $ip - 10; $exp = '0.0.0.250/24'; print 'got: ',$nip," exp: $exp\nnot " unless $nip eq $exp; &ok; ## test '++' post $nip++; $exp = '0.0.0.251/24'; print 'got: ',$nip," exp: $exp\nnot " unless $nip eq $exp; &ok; ## test '++' pre ++$nip; $exp = '0.0.0.252/24'; print 'got: ',$nip," exp: $exp\nnot " unless $nip eq $exp; &ok; ## test '--' post $ip--; $exp = '0.0.0.3/24'; print 'got: ',$ip," exp: $exp\nnot " unless $ip eq $exp; &ok; ## test '--' pre --$ip; $exp = '0.0.0.2/24'; print 'got: ',$ip," exp: $exp\nnot " unless $ip eq $exp; &ok;