Skip to contentSkip to conversation

Fix a couple of regression

PATCH In review Daniel Wagner 1 participant 4 messages Dec 18, 2022 – Jan 2, 2023

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 ipconfig: Do not filter out 0.0.0.0 gateway routes

This reverts commit cb05780d86c3 ("ipconfig: Don't add invalid gateway routes") as it introduced regressions for IPv4LL setups.

0.0.0.0 is a valid gateway address for IPv4LL setups (see forwarding rules in RFC3927).

Reported by Geoffrey Van Landeghem <[email protected]>

---
 src/ipconfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/ipconfig.c +1 -1
index 9f17f4989ea8..34b1724a22bb 100644
@@ -1172,7 +1172,7 @@ int __connman_ipconfig_gateway_add(struct connman_ipconfig *ipconfig)
 
 	DBG("");
 
-	if (!ipconfig->address || !ipconfig->address->gateway)
+	if (!ipconfig->address)
 		return -EINVAL;
 
 	service = __connman_service_lookup_from_index(ipconfig->index);
Signature · 1 line
2.39.0
#2 lore raw

PATCH 2/2 main: Add Hamachi interface to ignore list

In reply to Daniel Wagner

The Hamachi VPN daemon setups a network interface calles 'ham0' which is under control of this daemon. ConnMan should ignore it and not starting to auto configure it.

Reported by: i.Dark_Templar <[email protected]>

---
 src/main.c | 1 +
 1 file changed, 1 insertion(+)
src/main.c +1 -0
index 70277f66efce..ae4a450dea11 100644
@@ -78,6 +78,7 @@ static char *default_blacklist[] = {
 	"ifb",
 	"ve-",
 	"vb-",
+	"ham",
 	NULL
 };
 
Signature · 1 line
2.39.0