From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 460741fd148107b5e189d5649009c4ab36007855
Date: Tue, 01 Dec 2020 17:05:56 +0000 [thread overview]
Message-ID: <4ClpQX3WCqz2xdJ@people01.haj.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 4437 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 460741fd148107b5e189d5649009c4ab36007855 (commit)
from ebcecb4be40e014a4cc6117564fb07761c18324c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 460741fd148107b5e189d5649009c4ab36007855
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Tue Dec 1 17:05:43 2020 +0000
libloc: Import latest fixes from upstream
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
src/patches/libloc-0.9.4-upstream.patch | 38 ++++++++++++++++-----------------
1 file changed, 18 insertions(+), 20 deletions(-)
Difference in files:
diff --git a/src/patches/libloc-0.9.4-upstream.patch b/src/patches/libloc-0.9.4-upstream.patch
index a224baec2..a6ec1066b 100644
--- a/src/patches/libloc-0.9.4-upstream.patch
+++ b/src/patches/libloc-0.9.4-upstream.patch
@@ -487,7 +487,7 @@ index 2ba93e6..7aac0db 100644
if (!c)
return -ENOMEM;
diff --git a/src/database.c b/src/database.c
-index fa1dad0..7100298 100644
+index fa1dad0..4b8bf1d 100644
--- a/src/database.c
+++ b/src/database.c
@@ -38,8 +38,10 @@
@@ -876,7 +876,7 @@ index fa1dad0..7100298 100644
be32toh(n->one), 1, node->depth + 1);
if (r)
-@@ -1175,56 +1261,145 @@ LOC_EXPORT int loc_database_enumerator_next_network(
+@@ -1175,54 +1261,142 @@ LOC_EXPORT int loc_database_enumerator_next_network(
if (r)
return r;
@@ -970,7 +970,7 @@ index fa1dad0..7100298 100644
- return 0;
+ loc_network_unref(subnet);
+ continue;
- }
++ }
+
+ // If this is not a subnet, we push it back onto the stack and break
+ r = loc_network_list_push(enumerator->stack, subnet);
@@ -979,7 +979,7 @@ index fa1dad0..7100298 100644
+ loc_network_list_unref(subnets);
+
+ return r;
-+ }
+ }
+
+ loc_network_unref(subnet);
+ break;
@@ -987,17 +987,18 @@ index fa1dad0..7100298 100644
- // Reached the end of the search
+ DEBUG(enumerator->ctx, "Found %zu subnet(s)\n", loc_network_list_size(subnets));
-+
+
+- // Mark all nodes as non-visited
+- for (unsigned int i = 0; i < enumerator->db->network_nodes_count; i++)
+- enumerator->networks_visited[i] = 0;
+ // We can abort here if the network has no subnets
+ if (loc_network_list_empty(subnets)) {
+ loc_network_list_unref(subnets);
-+
+
+- return 0;
+ return 0;
+ }
-
-- // Mark all nodes as non-visited
-- for (unsigned int i = 0; i < enumerator->db->network_nodes_count; i++)
-- enumerator->networks_visited[i] = 0;
++
+ // If the network has any subnets, we will break it into smaller parts
+ // without the subnets.
+ struct loc_network_list* excluded = loc_network_exclude_list(*network, subnets);
@@ -1027,13 +1028,12 @@ index fa1dad0..7100298 100644
+ loc_network_list_unref(subnets);
+ loc_network_list_unref(excluded);
+
-+ // Replace network with the first one from the stack
++ // Drop the network and restart the whole process again to pick the next network
+ loc_network_unref(*network);
-+ *network = loc_network_list_pop_first(enumerator->stack);
-
- return 0;
- }
-
++
++ return __loc_database_enumerator_next_network_flattened(enumerator, network);
++}
++
+LOC_EXPORT int loc_database_enumerator_next_network(
+ struct loc_database_enumerator* enumerator, struct loc_network** network) {
+ // Do not do anything if not in network mode
@@ -1045,11 +1045,9 @@ index fa1dad0..7100298 100644
+ return __loc_database_enumerator_next_network_flattened(enumerator, network);
+
+ return __loc_database_enumerator_next_network(enumerator, network, 1);
-+}
-+
+ }
+
LOC_EXPORT int loc_database_enumerator_next_country(
- struct loc_database_enumerator* enumerator, struct loc_country** country) {
- *country = NULL;
diff --git a/src/libloc.sym b/src/libloc.sym
index b8296eb..ee333f1 100644
--- a/src/libloc.sym
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2020-12-01 17:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ClpQX3WCqz2xdJ@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox