[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-24 Thread Wayne Johnston
Wayne Johnston added the comment: I completely agree with comments about .is_global and special_use. Private IPs are just a subset of special use. For some part Private means the Private use networks reserved by IANA and specified in IETF RFC1918. For this PR "IPv4 dummy address" is

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: > Private is a subset of special use. Should a "_special_use" constant be > created. This would include multicast, link_local, private_use, and a few > more. There are already dedicated tests for those other special use networks in ipaddress. 192.0.0.0/2

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: Oops, I got my issue numbers mixed up. This is related to #44167, I meant. -- ___ Python tracker ___ ___

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: This is related to #42937, the IPv4 private network list is not considering the whole of 192.0.0.0/24 to be private. RFC 5736 / 6890 reserved 192.0.0.0/24 for special purposes (private networks) and to date a few subnets of that network have received assign

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-17 Thread Wayne Johnston
Change by Wayne Johnston : -- keywords: +patch pull_requests: +24822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26205 ___ Python tracker ___ _

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-17 Thread Wayne Johnston
Wayne Johnston added the comment: This a simple matter of adding the address to the _private_networks constant. I will add it and issue a pull request today/tomorrow. I could add some of the others too for completeness. However, these are really special use versus private. Private is

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-01-15 Thread CDirkx
New submission from CDirkx : Currently the method `ipaddress.is_global` returns true for the IPv4 address 192.0.0.8. This was correct when `is_global` was initially implemented, but in 2015 192.0.0.8 got designated as the "IPv4 dummy address" and not globally reachable, see the IANA special p