1Fsdb::Support::IPv6(3)User Contributed Perl DocumentationFsdb::Support::IPv6(3)
2
3
4
6 Fsdb::Support::IPv6 - ipv6-parsing helpers
7
9 use Fsdb::Support::IPv6;
10
11 ipv6_zeroize
12 $ipv6_zeroied = Fsdb::Support::IPv6::ipv6_zeroize('1:0002:3:4::');
13 # result is 1:2:3:4:0:0:0:0
14
15 Normalize an IPv6 address so it has all hextets present, with no
16 leading zeros.
17
18 ipv6_fullhex
19 $ipv6_fullhex = Fsdb::Support::IPv6::ipv6_full('1:0002:3:4::');
20 # result is 0001000200030004000000000000000
21
22 Rewrite an IPv6 address as a full, 128-bit, base-16 number.
23
24 ipv6_normalize
25 $ipv6_normal = Fsdb::Support::IPv6::ipv6_normalize('1:0002::7:0:00:8');
26 # result is 1:2::7:0:0:8
27
28 Convert an IPv6 address to IETF normal form. The input maybe has some
29 fields 0 or leading zero, or :: in a non-standard place. Normalize it
30 to remove leading zeros and replace the leftmost, longest run of zeros
31 with ::.
32
33 _test_zero_fill
34 Internal testing.
35
36 _test_zero_remove
37 Internal testing.
38
39 _test_fullhex
40 Internal testing.
41
42 _test_both
43 Internal testing.
44
45 _test_ipv6
46 Internal testing.
47
48
49
50perl v5.34.0 2021-07-22 Fsdb::Support::IPv6(3)