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] pasta: make it possible to disable socket splicing
Date: Fri, 29 Nov 2024 08:43:08 +0100 [thread overview]
Message-ID: <20241129084308.5b9d0352@elisabeth> (raw)
In-Reply-To: <f5f147d4-21c8-4446-a25b-7b4b0cd7d267@redhat.com>
On Thu, 28 Nov 2024 20:21:23 -0500
Jon Maloy <jmaloy@redhat.com> wrote:
> I am even questioning if it is necessary: If the port is bound on the host,
> the client only needs to use some of the non-loopback addresses on the
> host to reach it via the tap interface.
The same applies to inbound traffic by the way, as I mentioned: just use
a non-loopback address in the namespace/guest to reach it via the tap
interface:
$ { sleep 1; : | nc -4 -N passt.top 9999; } & ./pasta -q --config-net -p nc.pcap -t 9999 -- nc -q1 -l 9999
[1] 2052460
[1]+ Done { sleep 1; : | nc -4 -N passt.top 9999; }
$ tshark -r nc.pcap ip
8 0.968929 88.198.0.161 → 88.198.0.164 TCP 62 55898 → 9999 [SYN] Seq=0 Win=65535 Len=0 MSS=61440 WS=256
11 0.968967 88.198.0.164 → 88.198.0.161 TCP 62 9999 → 55898 [SYN, ACK] Seq=0 Ack=1 Win=65480 Len=0 MSS=65480 WS=4096
12 0.969000 88.198.0.161 → 88.198.0.164 TCP 54 55898 → 9999 [ACK] Seq=1 Ack=1 Win=65536 Len=0
13 0.969017 88.198.0.161 → 88.198.0.164 TCP 54 55898 → 9999 [FIN, ACK] Seq=1 Ack=1 Win=65536 Len=0
14 0.969063 88.198.0.164 → 88.198.0.161 TCP 54 9999 → 55898 [FIN, ACK] Seq=1 Ack=2 Win=65536 Len=0
15 0.969118 88.198.0.161 → 88.198.0.164 TCP 54 55898 → 9999 [ACK] Seq=2 Ack=2 Win=65536 Len=0
...that is, I guess that you or David find this convenient, but strictly
speaking, it's also unnecessary (actually, I won't use it myself, because
it's more typing).
--
Stefano
next prev parent reply other threads:[~2024-11-29 7:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 0:45 [PATCH] pasta: make it possible to disable socket splicing Jon Maloy
2024-11-29 1:21 ` Jon Maloy
2024-11-29 3:33 ` David Gibson
2024-11-29 7:43 ` Stefano Brivio [this message]
2024-11-29 2:48 ` David Gibson
2024-11-29 7:43 ` Stefano Brivio
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=20241129084308.5b9d0352@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).