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: passt-dev@passt.top, lvivier@redhat.com, dgibson@redhat.com
Subject: Re: [PATCH v2] udp: correct source address for ICMP messages
Date: Thu, 27 Mar 2025 05:43:47 +0100	[thread overview]
Message-ID: <20250327054347.33f22788@elisabeth> (raw)
In-Reply-To: <20250326155902.2903258-1-jmaloy@redhat.com>

On Wed, 26 Mar 2025 11:59:02 -0400
Jon Maloy <jmaloy@redhat.com> wrote:

> While developing traceroute forwarding tap-to-sock we found that
> struct msghdr.msg_name for the ICMPs in the opposite direction always
> contains the destination address of the original UDP message, and not,
> as one might expect, the one of the host which created the error message.
> 
> Study of the kernel code reveals that this address instead is appended
> as extra data after the received struct sock_extended_err area.
> 
> We now change the ICMP receive code accordingly.
> 
> Fixes: 55431f0077b6 ("udp: create and send ICMPv4 to local peer when applicable")
> Fixes: 68b04182e07d ("udp: create and send ICMPv6 to local peer when applicable")
> 
> Signed-off-by: Jon Maloy <jmaloy@redhat.com>
> ---
> v2: Removed stray comment and unecessary initializations, as per
>     feedback from David Gibson

Applied.

-- 
Stefano


      parent reply	other threads:[~2025-03-27  4:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 15:59 [PATCH v2] udp: correct source address for ICMP messages Jon Maloy
2025-03-26 23:28 ` David Gibson
2025-03-27  4:43 ` 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=20250327054347.33f22788@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=dgibson@redhat.com \
    --cc=jmaloy@redhat.com \
    --cc=lvivier@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).