From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] tap: Don't update ip6.addr_seen to ::
Date: Wed, 17 May 2023 21:40:21 +0200 [thread overview]
Message-ID: <20230517214021.49bc9ed4@elisabeth> (raw)
In-Reply-To: <20230516003611.1699202-1-david@gibson.dropbear.id.au>
On Tue, 16 May 2023 10:36:11 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:
> When we receive packets from the tap side, we update the addr_seen fields
> to reflect the last known address of the guest or ns. For ip4.addr_seen
> we, sensibly, only update if the address we've just seen isn't 0 (0.0.0.0).
> This case can occur during early DHCP transactions.
>
> We have no equivalent case for IPv6. We're less likely to hit this,
> because DHCPv6 uses link-local addresses, however we can see an source
> address of :: with certain multicast operations. This can bite us if we
> try to make an incoming connection very early after starting pasta with
> --config-net: we may have only seen some of those multicast packets,
> updated addr_seen to :: and not had any "real" packets to update it to a
> global address. I've seen this with some of the avocado test conversions.
It looks like I haven't stared at enough packet captures yet...
> In any case, it can never make sense to update addr_seen to ::, so
> explicitly exclude that case.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Applied.
--
Stefano
prev parent reply other threads:[~2023-05-17 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 0:36 [PATCH] tap: Don't update ip6.addr_seen to :: David Gibson
2023-05-17 19:40 ` Stefano Brivio [this message]
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=20230517214021.49bc9ed4@elisabeth \
--to=sbrivio@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).