All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geoffrey Van Landeghem <geoffrey.vl@gmail.com>
To: wagi@monom.org
Cc: connman@lists.linux.dev, john@metanate.com
Subject: Re: autoip address set/reset loop
Date: Wed, 23 Nov 2022 18:12:44 +0100	[thread overview]
Message-ID: <152f062c-7c16-c6cb-c8e8-c6f82902e40b@gmail.com> (raw)

Subject: Re: autoip address set/reset loop


Hi Daniel,


Well, as said it autoip (APIPA) was not working because of this because it seems to not have assigned any gateway at this stage. This get's assigned in the __connman_connection_gateway_add() function which is called after this DBG(...):

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->gateway : "NULL",
        ipconfig->address->peer ? ipconfig->address->peer : "NULL");

    if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6 ||
                ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV4)
        return __connman_connection_gateway_add(service,
                        ipconfig->address->gateway,
                        ipconfig->type,
                        ipconfig->address->peer);

In that __connman_connection_gateway_add() function the null gateway is assigned 0.0.0.0, so your commit was effectively blocking that.


             reply	other threads:[~2022-11-23 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-23 17:12 Geoffrey Van Landeghem [this message]
2022-11-23 17:36 ` autoip address set/reset loop 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
  -- strict thread matches above, loose matches on Subject: below --
2022-11-23 16:03 Geoffrey Van Landeghem
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=152f062c-7c16-c6cb-c8e8-c6f82902e40b@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.