Title: iptools.ipv4.validate_netmask() seems to be auto-filling 0's · Issue #18 · bd808/python-iptools · GitHub
Open Graph Title: iptools.ipv4.validate_netmask() seems to be auto-filling 0's · Issue #18 · bd808/python-iptools
X Title: iptools.ipv4.validate_netmask() seems to be auto-filling 0's · Issue #18 · bd808/python-iptools
Description: import iptools netmask = '255' valid = iptools.ipv4.validate_netmask(netmask) This returns True. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a full netmask. We were using this tool to check and see i...
Open Graph Description: import iptools netmask = '255' valid = iptools.ipv4.validate_netmask(netmask) This returns True. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a full netmask. We...
X Description: import iptools netmask = '255' valid = iptools.ipv4.validate_netmask(netmask) This returns True. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a full...
Opengraph URL: https://github.com/bd808/python-iptools/issues/18
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iptools.ipv4.validate_netmask() seems to be auto-filling 0's","articleBody":"`import iptools\nnetmask = '255'\nvalid = iptools.ipv4.validate_netmask(netmask)\n`\nThis returns `True`. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a full netmask. We were using this tool to check and see if our users are entering valid IP addresses, netmasks, and gateways. Since it is auto-filling if you only have the first octet and nothing else this is not a valid tool which we can use. \n\nAlso, we tried inputting '0.255.255.0' and this method returned True. \n","author":{"url":"https://github.com/DarthOpto","@type":"Person","name":"DarthOpto"},"datePublished":"2016-08-17T21:47:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/18/python-iptools/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24a41bb9-e77f-736e-41bd-6c8bf39d88de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E18C:22D8BD:11534A4:17AA549:69694530 |
| html-safe-nonce | 7effaac29fb1f2220dc3f61c0e1c113eb5aa0f97ec585fa0966f2fa803d9b838 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMThDOjIyRDhCRDoxMTUzNEE0OjE3QUE1NDk6Njk2OTQ1MzAiLCJ2aXNpdG9yX2lkIjoiMjM4NTc4NzYxNjY3NDUzMDYwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 828d6674ec2301c8bd4aa59ffc586aa71b56e6ba395841043d9e06d2466f1a5a |
| hovercard-subject-tag | issue:171768630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bd808/python-iptools/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c343c5a9bc189525a92ac8354138dce52fdf34d5e7f1e4210106ce8e2c42e668/bd808/python-iptools/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c343c5a9bc189525a92ac8354138dce52fdf34d5e7f1e4210106ce8e2c42e668/bd808/python-iptools/issues/18 |
| og:image:alt | import iptools netmask = '255' valid = iptools.ipv4.validate_netmask(netmask) This returns True. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a full netmask. We... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DarthOpto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/bd808/python-iptools git https://github.com/bd808/python-iptools.git |
| octolytics-dimension-user_id | 6469 |
| octolytics-dimension-user_login | bd808 |
| octolytics-dimension-repository_id | 4294228 |
| octolytics-dimension-repository_nwo | bd808/python-iptools |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4294228 |
| octolytics-dimension-repository_network_root_nwo | bd808/python-iptools |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width