Luke Else luke-else
luke-else commented on issue luke-else/subnet_calculator#1 2023-05-15 19:50:29 +00:00
Addition / XOR of IP addresses

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

luke-else closed issue luke-else/subnet_calculator#2 2023-05-15 19:49:42 +00:00
Overflow when borrowed network bits >= 8 bits
luke-else commented on issue luke-else/subnet_calculator#2 2023-05-15 19:49:39 +00:00
Overflow when borrowed network bits >= 8 bits

This appears to be fully functional now :) Yayyyyy

luke-else commented on issue luke-else/subnet_calculator#3 2023-05-15 19:48:53 +00:00
Update from_arr and to_arr

And because of our current implementation and reliance of us being able to refuse IPv6 Addresses, it would be quite a large and complex change to get this to work.

luke-else commented on issue luke-else/subnet_calculator#3 2023-05-15 19:46:55 +00:00
Update from_arr and to_arr

Doing so would currently create a stack overflow because of a cross dependency between u32::from(IpAddr) and the IpAddr::to_arr() function

luke-else pushed to master at luke-else/subnet_calculator 2023-05-15 19:26:54 +00:00
625233ab86 #2 Completed the implementation of create_subnet function, all subnet network addresses are now ALL correctly appended to the vector. Would like to add some more resilient unit testing at some point down the line to verify the accuracy / robustness of the function
luke-else pushed to master at luke-else/subnet_calculator 2023-05-15 18:51:28 +00:00
8c88d7945a #2 Added IpAddr from u32 function. Finally ready to integrate it into subnet calculation
luke-else opened issue luke-else/subnet_calculator#3 2023-05-15 18:45:48 +00:00
Update from_arr and to_arr
luke-else pushed to master at luke-else/subnet_calculator 2023-05-15 18:35:11 +00:00
6a4573450c #2 Made IpAddr to u32 function more efficient by using big endian functions built into rust
luke-else pushed to master at luke-else/subnet_calculator 2023-05-15 18:22:05 +00:00
4ace257932 #2 Added new function to convert an IPv4 Address to an Unsigned 32-bit interger. Also did some small bits of code cleanup
luke-else commented on issue luke-else/subnet_calculator#2 2023-05-15 16:16:54 +00:00
Overflow when borrowed network bits >= 8 bits

What I am currently thinking is the idea of converting an IP address to a 32 bit integer... and then using a window which what the CIDR allows the editing of. As a result, we cna just increment…

luke-else commented on issue luke-else/subnet_calculator#2 2023-05-15 16:02:31 +00:00
Overflow when borrowed network bits >= 8 bits

From here, I think the best way is to look at making a function that allows for IP address incrementation given the subnet mask.

So for example we use the base network, we can create an…

luke-else commented on issue luke-else/subnet_calculator#2 2023-05-13 10:37:34 +00:00
Overflow when borrowed network bits >= 8 bits

The problem comes from the network spacing variable. This only specifies the spacing in the last octet that has borrowed bits. What I mean by this is that any octets before this should have a…

luke-else commented on issue luke-else/subnet_calculator#2 2023-05-12 22:37:37 +00:00
Overflow when borrowed network bits >= 8 bits

I have fixed the overflow now, however, the logic still isn't quite right. When I create a subnet that has more than 8 borrowed bits, the addresses aren't quite incremented in the way that I would…

luke-else pushed to master at luke-else/subnet_calculator 2023-05-12 13:17:57 +00:00
55ccf05902 Adapted the create_subnet function to itterate through each octet to stop the overflows. There is however still an issue where the actual IP addresses aren't added correctly into the networks list.
luke-else pushed to main at luke-else/.config 2023-05-03 10:51:13 +00:00
204ffd906a Added Fuzzy Finder (fzf) to install script
luke-else pushed to master at luke-else/subnet_calculator 2023-05-02 06:29:34 +00:00
924142e96c Bugfix: u8 no longer overflows when there are no borrowed bits.
luke-else pushed to master at luke-else/subnet_calculator 2023-05-02 06:25:06 +00:00
b8e4ff21b0 Completed first draft of create_subnet() and added additional tests. NOTE: One test is still failing in order to outline the fact that there is still a slight bug in the code
luke-else opened issue luke-else/subnet_calculator#2 2023-04-30 17:27:56 +00:00
Overflow when borrowed network bits >= 8 bits
luke-else commented on issue luke-else/subnet_calculator#1 2023-04-30 16:10:37 +00:00
Addition / XOR of IP addresses

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