[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 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 many others included in  
https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml.

--
nosy: +CosmicKid

___
Python tracker 
<https://bugs.python.org/issue42937>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue42937>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for sure not global.  Technically, it is 
not a private use IP either.  Just following what others have done.  I really 
like the apporoach of removing the routable special IPs.  Let me know if I 
should create a PR to do this.  This would include adding specific special use 
constant plus a whole bunch of very specific constants.  A constant like 
is_dummy will be added.

I pretty much have the code ready to go for IPV4.

--
components: +Library (Lib)
versions: +Python 3.11 -Python 3.9

___
Python tracker 
<https://bugs.python.org/issue42937>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com