- 30 Mar, 2022 6 commits
-
-
Michael Tremer authored
Otherwise this test runs for forever Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
The prefix is being stored as a total number of bits now since it is easier for any bitwise maths later. This is however causing an incorrect prefix being computed when splitting a network into two subnets for IPv4. To get the correct prefix, loc_network_prefix must be called. Introduced in 1fd09d0bReported-by: Valter Jansons <valter.jansons@gmail.com> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
If loc_network_subnets is being called with some invalid input, we just fail without logging a useful message or setting errno accordingly. This is being changed with this patch. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This is a performance improvement when exporting networks flattened. For the subnet search, we allocate an empty list many times which is often not required. This patch changes this behaviour that (if needed) the lists will be allocated and will stay around and cleared if necessary. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
- 23 Mar, 2022 1 commit
-
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
- 09 Mar, 2022 9 commits
-
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This patch moves the subqueries out of the large query, so that the database will materialize them for faster lookup. We also drop the "UNION ALL" and replace it with just "UNION" because we do not want any duplicate networks. That will save us many iterations later on. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
When we add a large number of ASes to the list, we will constantly re-allocate the whole list because we are only growing it by 64 entries at a time. This patch changes that we will double the list in size every time we run out of space and we will start with 1024 elements. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
- 07 Mar, 2022 24 commits
-
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This patch improves looping through the octets of an IP address and avoids that we will read anything that isn't for us. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This helps us to write less code and spend less time allocating and freeing memory. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
When creating an IPv4 subnet, the prefix had to be mapped to the mapped syntax (i.e. add 96). This doesn't seem too intuitive to me. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This changes that we won't compare one network with the previous one, but instead we will look for gaps starting from the first possible to the last possible IP address. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-