-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: ipv4_subnet calculator added #1121
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
Conversation
| /** | ||
| * @file | ||
| * @brief | ||
| * [Explanation](https://www.softwaretestinghelp.com/subnet-mask-and-network-classes/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a brief explanation of the algorithm/implementation.
| unsigned int ipv4; | ||
| unsigned char subnetmask[4]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a one-line description of what the variable is for (see the example below).
int64_t data = 0; ///< The value/key of the node.
int64_t array[64]; ///< The array that will be used for the tree.| /** | ||
| * @brief test method | ||
| * | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | |
| * @brief test method | |
| * | |
| */ | |
| /** | |
| * @brief Self-test implementations | |
| * @returns void | |
| */ |
| int main() | ||
| { | ||
| test(); | ||
| return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| int main() | |
| { | |
| test(); | |
| return 1; | |
| /** | |
| * @brief Main function | |
| * @returns 0 on exit | |
| */ | |
| int main() | |
| { | |
| test(); // run self-test implementations | |
| return 0; |
|
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions! |
Description of Change
Contribution of an algorithm to calculate subnet mask of ipv4 addresses with network bits.
Checklist