- 21 Oct, 2020 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
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
loc_network_new_from_string() seem to have had some unexpected behaviour for invalid inputs. The function has been tidied up slightly and returns as soon as some invalid input was detected. 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>
-
- 20 Oct, 2020 1 commit
-
-
Michael Tremer authored
Reported-by:
Gisle Vanem <gisle.vanem@gmail.com> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 16 Oct, 2020 3 commits
-
-
Michael Tremer authored
This reverts commit f532841e. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This reverts commit a36bc686. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 12 Oct, 2020 2 commits
-
-
Peter Müller authored
In contrast to ARIN and LACNIC, we are able to process more detailled feeds from those RIRs, avoiding storage of obviously unnecessary data. Thanks to various SQL optimisations, doing so now takes less time than the first version of this did. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org> Signed-off-by:
Peter Müller <peter.mueller@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Peter Müller authored
This reverts commit 92f6abf4. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 24 Sep, 2020 2 commits
-
-
Michael Tremer authored
This reverts commit 64e95fa9. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This reverts commit c2cc55d5. The query stalls the database and therefore the automatic scripts are no longer able to generate a new version of the database. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 21 Sep, 2020 4 commits
-
-
Michael Tremer authored
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Peter Müller authored
When importing inetnums, we might import various small networks which are not relevant for us as long as they do not have a different country code than their parent network. Therefore we delete all these entries to keep the database smaller without losing any information. The second version of this patch introduces a SQL statement parallelised across all CPUs available, while the DELETE-statement of the first version literally took ages to complete. However, cleaning up those data still takes about 26 hours (!) on our location02 testing machine, making daily updates of the location database impossible to the current knowledge. real 1521m30.620s user 38m45.521s sys 9m6.027s Special thanks goes to Michael for spending numerous hours on this, setting up a testing environment, doing PostgreSQL magic and providing helpful advice while debugging. Partially fixes: #12458 Cc: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by:
Peter Müller <peter.mueller@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Peter Müller authored
The extended feeds do not have enough detailed information for us, so that we need to import inetnums from RIRs where possible. Filtering private networks is necessary as RIR data may contain 0.0.0.0/0 or similar entries for administrative purposes or due to misfilings. Special thanks goes to Michael for spending numerous hours on this, setting up a testing environment and providing helpful advice while debugging. Partially fixes: #12458 Cc: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by:
Peter Müller <peter.mueller@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Peter Müller authored
Signed-off-by:
Peter Müller <peter.mueller@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 18 Sep, 2020 6 commits
-
-
Michael Tremer authored
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
We can use this to avoid formatting the network in a string representation which is then parsed again later to determine the first and last addresses. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
This avoids recomputing the last address multiple times. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Michael Tremer authored
It is unnecessary to write any subnets in the output, because they might already be included in a bigger parent network. Since the tree is ordered, we only need to check if the network to be written is a subnet of the previous one. If so, we skip it. Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 10 Sep, 2020 4 commits
-
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
This function can be used to get the stored name for a given country code. Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 31 Aug, 2020 3 commits
-
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
This function can be used to check if a given address or network has one of the following network flags. * LOC_NETWORK_FLAG_ANONYMOUS_PROXY * LOC_NETWORK_FLAG_SATELLITE_PROVIDER * LOC_NETWORK_FLAG_ANYCAST It will return true if the given flag is set. Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 24 Aug, 2020 1 commit
-
-
Stefan Schantl authored
This function can be use to give the numer of an Autonomous System and get back the stored name from the used location database. Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 21 Aug, 2020 3 commits
-
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
The generated database is used by the testsuite of the perl binding. Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
Stefan Schantl authored
This function is used to the stored countries of a database, which easily can be assigned to an array. Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 04 Aug, 2020 1 commit
-
-
Michael Tremer authored
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-
- 03 Aug, 2020 1 commit
-
-
Stefan Schantl authored
Signed-off-by:
Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
-