public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Jon Maloy <jmaloy@redhat.com>
Cc: david@gibson.dropbear.id.au, passt-dev@passt.top
Subject: Re: [PATCH v9] dhcpv6: Fix reply destination to match client's source address
Date: Wed, 15 Jul 2026 09:11:19 +0200 (CEST)	[thread overview]
Message-ID: <20260715091118.6b584449@elisabeth> (raw)
In-Reply-To: <20260710215833.1731937-1-jmaloy@redhat.com>

On Fri, 10 Jul 2026 17:58:33 -0400
Jon Maloy <jmaloy@redhat.com> wrote:

> tap_ip6_daddr() selects the reply destination based on our source
> address type (link-local), so it always returns addr_ll_seen. But if
> the client sent from a global address, we would reply to an address
> different from what the client is expecting. Since RFC 9915 (section
> 18.3.10) allows clients to use global addresses for DHCPv6, we now
> correct this, and always respond to the address the client was using.
> 
> We also remove a redundant addr_ll_seen assignment, since this is
> already done by tap.c when processing IPv6 packets.
> 
> Note: if the client uses a global source address, our reply will
> still have a link-local source, creating a scope mismatch. Fixing
> this properly would require a mechanism to allocate a global address
> for the DHCPv6 server, which we currently don't have. Responding to
> the client's actual source address is still a net improvement over the
> previous behavior of replying to an unrelated cached address.
> 
> Note 2: This commit isn't actually a fix to an observed problem, but
> rather an answer to a theoretical issue, adding completeness to the
> mechanism and simplifying subsequent changes in this series.
> 
> Signed-off-by: Jon Maloy <jmaloy@redhat.com>
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> 
> ---
> v8: -Updated commit log, acknowledging concerns expressed by David and
>      Stefano.
>     -Some minor changes also addressing feedback from the same persons.
> v9: -Broken out of multi-addr series and posted as standalone patch.
>      No code changes.

Applied.

-- 
Stefano


      parent reply	other threads:[~2026-07-15  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10 21:58 Jon Maloy
2026-07-13  4:18 ` David Gibson
2026-07-15  7:11 ` 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=20260715091118.6b584449@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=jmaloy@redhat.com \
    --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).