Skip to content

Added methods capable of returning the netmask #48

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

Closed
wants to merge 5 commits into from

Conversation

antoniovl
Copy link

Two methods were added to find the netmask of an IP address, both are based in the findAddressInTree() method found on the Reader struct.

  • Netmask() returns the netmask value along with any errors found. Heavily based on findAddressInTree().
  • LookupOffsetWithNetmask() adds an additional return value with the netmask value.

Both methods are suited for NS1's needs but we think they may be useful.

@oschwald
Copy link
Owner

#59 accomplishes this same goal in a bit different way. I am closing in favor of that.

@oschwald oschwald closed this Aug 23, 2019
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

Successfully merging this pull request may close these issues.

2 participants