File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
lib/ronin/support/network/ip_range Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ class IPRange
2727 #
2828 # ## Examples
2929 #
30+ # Enumerating over a IPv4 glob range:
31+ #
3032 # ip_range = IPRange::Glob.new('10.0.1-3.*')
3133 # ip_range.each { |ip| puts ip }
3234 # # 10.0.1.0
@@ -47,6 +49,28 @@ class IPRange
4749 # # 10.0.3.254
4850 # # 10.0.3.255
4951 #
52+ # Enumerating over a IPv6 glob range:
53+ #
54+ # ip_range = IPRange::Glob.new('fc00::1-3:*')
55+ # ip_range.each { |ip| puts ip }
56+ # # fc00::1:0000
57+ # # fc00::1:0001
58+ # # ...
59+ # # fc00::1:fffe
60+ # # fc00::1:ffff
61+ # # ...
62+ # # fc00::2:0000
63+ # # fc00::2:0001
64+ # # ...
65+ # # fc00::2:fffe
66+ # # fc00::2:ffff
67+ # # ...
68+ # # fc00::3:0000
69+ # # fc00::3:0001
70+ # # ...
71+ # # fc00::3:fffe
72+ # # fc00::3:ffff
73+ #
5074 # @api public
5175 #
5276 # @since 1.0.0
You can’t perform that action at this time.
0 commit comments