Luke Else luke-else
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.

luke-else pushed to master at luke-else/subnet_calculator 2023-04-30 13:16:26 +00:00
aad67836df create_subnet function now works when the CIDR borrows 8 or less bits, need to figure out a way to have it so that we can modify the other octest sequentially
luke-else pushed to master at luke-else/subnet_calculator 2023-04-27 22:28:38 +00:00
2dcbd405e4 First draft of subnet generation function. Still not complete, does overflow but I believe it is only small logic changes
luke-else opened issue luke-else/subnet_calculator#1 2023-04-27 21:24:08 +00:00
Addition / XOR of IP addresses
luke-else pushed to master at luke-else/subnet_calculator 2023-04-26 20:44:20 +00:00
cf35765cb4 Further itterations on create_subnet function and relevant tests
luke-else pushed to master at luke-else/subnet_calculator 2023-04-26 20:19:40 +00:00
6fafa97d61 Made alterations to functions using IP to make it use new functions