From: Geoffrey Van Landeghem <geoffrey.vl@gmail.com>
To: john@metanate.com
Cc: connman@lists.linux.dev, wagi@monom.org
Subject: Re: autoip address set/reset loop
Date: Wed, 23 Nov 2022 17:03:06 +0100 [thread overview]
Message-ID: <66993511-8b3c-bf48-beaf-9ff9e6ee446b@gmail.com> (raw)
Subject: Re: autoip address set/reset loop
From c34b1e21adbf1376158c4140760c64bc867f9ced Mon Sep 17 00:00:00 2001
From: Geoffrey Van Landeghem <geoffrey.vl@gmail.com>
Date: Tue, 22 Nov 2022 19:50:12 +0100
Subject: [PATCH] ipconfig: revert not adding invalid gateway routes
---
src/ipconfig.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 74215e1d..5af6dae7 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -1183,15 +1183,20 @@ 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);
if (!service)
return -EINVAL;
+ /*
+ * Gateway is allowed to be NULL here, see
+ * __connman_connection_gateway_add()
+ */
DBG("type %d gw %s peer %s", ipconfig->type,
- ipconfig->address->gateway, ipconfig->address->peer);
+ ipconfig->address->gateway ? ipconfig->address->gateway : "NULL",
+ ipconfig->address->peer ? ipconfig->address->peer : "NULL");
if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6 ||
ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV4)
next reply other threads:[~2022-11-23 16:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 16:03 Geoffrey Van Landeghem [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-23 17:12 autoip address set/reset loop Geoffrey Van Landeghem
2022-11-23 17:36 ` Daniel Wagner
2022-11-23 18:27 ` Geoffrey Van Landeghem
2022-11-24 11:45 ` Daniel Wagner
2022-11-24 16:34 ` Geoffrey Van Landeghem
2022-11-24 17:30 ` Daniel Wagner
2022-11-23 14:56 Geoffrey Van Landeghem
2022-11-23 15:10 ` John Keeping
2022-11-23 16:46 ` Daniel Wagner
2022-11-18 10:55 Geoffrey Van Landeghem
2022-11-22 18:35 ` Geoffrey Van Landeghem
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=66993511-8b3c-bf48-beaf-9ff9e6ee446b@gmail.com \
--to=geoffrey.vl@gmail.com \
--cc=connman@lists.linux.dev \
--cc=john@metanate.com \
--cc=wagi@monom.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.