From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top, Paul Holzinger <pholzing@redhat.com>
Subject: Re: [PATCH 2/4] tap: Trace received (outbound) ICMP packets in debug mode, too
Date: Thu, 27 Oct 2022 08:55:50 +1100 [thread overview]
Message-ID: <Y1ms5hkpl5O15gsc@yekko> (raw)
In-Reply-To: <20221026162531.545374-3-sbrivio@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
On Wed, Oct 26, 2022 at 06:25:29PM +0200, Stefano Brivio wrote:
> This only worked for ICMPv6: ICMP packets have no TCP-style header,
> so they are handled as a special case before packet sequences are
> formed, and the call to tap_packet_debug() was missing.
>
> Fixes: bb708111833e ("treewide: Packet abstraction with mandatory boundary checks")
> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> tap.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tap.c b/tap.c
> index 3f78c99..4dcff4f 100644
> --- a/tap.c
> +++ b/tap.c
> @@ -463,6 +463,8 @@ resume:
> if (c->no_icmp)
> continue;
>
> + tap_packet_debug(iph, NULL, NULL, 0, NULL, 1);
> +
> packet_add(pkt, l4_len, l4h);
> icmp_tap_handler(c, AF_INET, &iph->daddr, pkt, now);
> continue;
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-10-26 22:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 16:25 [PATCH 0/4] Debugging improvements, fix for 0 sequence echo reply Stefano Brivio
2022-10-26 16:25 ` [PATCH 1/4] conf, passt.1: Don't imply --foreground with --debug Stefano Brivio
2022-10-26 21:52 ` David Gibson
2022-10-26 16:25 ` [PATCH 2/4] tap: Trace received (outbound) ICMP packets in debug mode, too Stefano Brivio
2022-10-26 21:55 ` David Gibson [this message]
2022-10-26 16:25 ` [PATCH 3/4] icmp: Add debugging messages for handled replies and requests Stefano Brivio
2022-10-26 21:57 ` David Gibson
2022-10-26 16:25 ` [PATCH 4/4] icmp: Don't discard first reply sequence for a given echo ID Stefano Brivio
2022-10-26 21:59 ` David Gibson
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=Y1ms5hkpl5O15gsc@yekko \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=pholzing@redhat.com \
--cc=sbrivio@redhat.com \
/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).