Asused(3pm)
π NAME π
Reg::Asused β bestie, it's a Perl module for asused. That's the whole vibe. Periodt.
β¨ SYNOPSIS β¨
okay so here's how you actually get in:
use Reg::Asused;
use regread;
use ipv4pack;
my($asu) = new Reg::Asused;
my($errNo, $errStr ) = $asu->getDBAlloc($alloc, $whois, \%regAlloc);
($errNo, $errStr ) = $asu->getAssign($alloc, $assign, $whois);
($network, $ret) = $asu->approveNa($whois, $opt{'valid'}, $opt{'regid'});
no cap, that's the whole entrance. slay.
πΈ DESCRIPTION πΈ
π approveNa
my ($network, $ret, $vlid) = $asu->approveNa($whois, $arg, $regid);
it's giving "gimme the goods" β this returns a ref to the inetnum result, as a string, plus the valid result. π«Ά
if something goes wrong it returns undef. and if you're like "bestie what happened", you call ($errno, $errstr) = $asu->error and it will return the error. π
π¦ checkOverlap
$oCount = $self->checkOverlap($assign, $i, \@assign, \$sOverlap);
checking for overlap in a list of inetnum objects, fr fr. the list
@{$assign->{$assignList->[$i]}{'overlap'}}
holds the list of overlapping inetnums. π
and if two inetnums are logically sme (sic β that's literally what the original says, i'm not fixing it, i don't make the rules π), it sets a warning in the list
@{$assign->{$assignList->[$i]}{'warning'}}
which has the list of overlapping inetnums. β¨
π error
return error number and string.
($errorno, $errorstr ) = $asu->error;
and to reset the error:
$asu->(undef, undef, 1);
yeah, that's the syntax. iconic of it, honestly.
π getAssign
get all assignments for each prefix in @{$alloc->{'dbAlloc'}}. πΈ
($errNo, $errStr ) = $asu->getAssign($alloc, $assign, $whois);
returns undef on success. yes, undef means it worked. iykyk. π
π§ getDBAlloc
get allocations from the RIPE whois database for every prefix or allocation under a registary. π it's out here with "-L" "-F" "-c" "-T" in .
it checks that the netname's same are regid (translated "." "-"), that mnt-by is one of the valid RIPE maintiner, and that status is ALLOCATED PA, PI or UNSPECIFIED. β
my($errNo, $errStr ) = $asu->getDBAlloc($alloc, $whois, $regAlloc);
$allocβ ref to Net::RIPEWhois::in$whoisβ ref to Net::RIPEWhois$regAllocβ ref to hash with keys as queries to locate Allocations
π AUTHOR π
Antony <antony@ripe.net>, software group RIPE NCC <softies@ripe.net> π«Ά
π SEE ALSO π
and that's the whole page, bestie β this one's from perl v5.32.0, dated 2021-01-26, and it lives in the Asused(3pm) section of the User Contributed Perl Documentation. go off, you understood all of it. π β¨
π¦ where this page comes from
- debian bookworm: asused 3.72-14 Β· MIT
- debian trixie: asused 3.72-14 Β· MIT
- ubuntu jammy: asused 3.72-14 Β· MIT
- ubuntu noble: asused 3.72-14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms