Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truncated network names are not correctly handled #50

Open
nresare opened this issue Nov 10, 2015 · 0 comments
Open

truncated network names are not correctly handled #50

nresare opened this issue Nov 10, 2015 · 0 comments

Comments

@nresare
Copy link

nresare commented Nov 10, 2015

for example the nestat -nr command on OSX outputs truncated network names where for example 10.255/20 is considered to be equivalent of 10.255.0.0/20. For ipcalc these are not treated equally:

>>> n = ipcalc.Network("10.255/20")
>>> n.host_first(), n.host_last()
(IP('10.0.0.1'), IP('10.0.15.254'))

>>> n = ipcalc.Network("10.255.0.0/20")
>>> n.host_first(), n.host_last()
(IP('10.255.0.1'), IP('10.255.15.254'))
(python-env)date:~ noa$ pip list |grep ipcalc
ipcalc (1.1.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant