ipv4-subnet-calculator-php icon indicating copy to clipboard operation
ipv4-subnet-calculator-php copied to clipboard

Ipv6

Open Nevercold opened this issue 3 years ago • 3 comments

it would be good if the whole thing would also work with ipv6.

Nevercold avatar Dec 29 '21 07:12 Nevercold

or at least one function like ipv6 to addr

Nevercold avatar Dec 29 '21 07:12 Nevercold

Hi @Nevercold,

Thank you for your interest in this project.

Can you provide an example of what kind of functionality you are requesting. For example, what are the inputs and outputs with at least one concrete example.

Thanks, Mark

markrogoyski avatar Dec 29 '21 16:12 markrogoyski

Hey!

i actually just need to get the arpa from an ipv6 address.

Input: 2001:db8::1 Output: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa

$sub = new IPv6\SubnetCalculator('2001:db8::1');
$ipv6ArpaDomain = $sub->getIPv6ArpaDomain();

Thanks.

Nevercold avatar Dec 29 '21 16:12 Nevercold