aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStuart McLaren <stuart.mclaren@hpe.com>2026-12-04 14:45:19 +0000
committerStefano Brivio <sbrivio@redhat.com>2026-12-04 22:54:33 +0100
commit24470b42b36a44dbd94d9cf28a166a02fb2eb58a (patch)
treebbb5d66e6bd40c75e416572d2a355ae5aff7fbd7
parent5e7a154aaaa8891afa007e111aed6d67f7680645 (diff)
downloadpasst-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.gz
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.bz2
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.lz
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.xz
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.zst
passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.zip
conf: Make --splice-only and --fd mutually exclusive
The --fd option passes in a pre-opened fd carrying layer 2 traffic (tap datapath). In splice-only mode that datapath is unusable: with L2 buffers no longer initialised, traffic from the fd is silently dropped. Reject the combination. Link: https://archives.passt.top/passt-dev/20261203175624.3078368-1-stuart.mclaren@hpe.com/ Signed-off-by: Stuart McLaren <stuart.mclaren@hpe.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 925b94d..51bfb5a 100644
--- a/conf.c
+++ b/conf.c
@@ -2170,6 +2170,9 @@ void conf(struct ctx *c, int argc, char **argv)
if (c->no_splice)
die("--splice-only is incompatible with --no-splice");
+ if (c->fd_tap != -1)
+ die("--splice-only is incompatible with --fd");
+
c->host_lo_to_ns_lo = 1;
c->no_icmp = 1;
c->no_dns = 1;