Luke Else luke-else
luke-else created repository luke-else/sql_latency_test 2023-05-19 11:24:07 +00:00
luke-else pushed to main at luke-else/luke-else.co.uk 2023-05-18 19:53:18 +00:00
a6508e284e Updated website to be more applicable. Removed the contact page which lost functionality.
luke-else pushed to master at luke-else/subnet_calculator 2023-05-15 21:27:57 +00:00
30344b0605 Cleaned up some minor issues in main.rs making the final output easier for the end user to read and comprehend
luke-else closed issue luke-else/subnet_calculator#1 2023-05-15 19:50:30 +00:00
Addition / XOR of IP addresses
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 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.