Addition / XOR of IP addresses #1

Closed
opened 2023-04-27 21:24:08 +00:00 by luke-else · 2 comments
Owner

In order to properly implement subnetting, I need to create a function within the IP address class that allows for adding / XORing in order to correctly portray the gap in-between each network.

In order to properly implement subnetting, I need to create a function within the IP address class that allows for adding / XORing in order to correctly portray the gap in-between each network.
luke-else added the
enhancement
label 2023-04-27 21:24:08 +00:00
luke-else self-assigned this 2023-04-27 21:24:08 +00:00
Author
Owner

Could also look at a looping over an 8 bit segment of the CIDR's borrowed bits.

Could also look at a looping over an 8 bit segment of the CIDR's borrowed bits.
Author
Owner

Implemented in #2 by converting IPs to u32 and adding an additional u32 to each address to get the full range of subnets

Implemented in #2 by converting IPs to u32 and adding an additional u32 to each address to get the full range of subnets
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: luke-else/subnet_calculator#1
No description provided.