diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2022-11-17 18:49:34 +0000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-11-25 01:40:47 +0100 |
commit | 6b4e68383c66bd8a3863d9a708bae583d18dc056 (patch) | |
tree | 1cca0effcbfdc3f38856638d7ba227472ba6acf2 /passt.1 | |
parent | 15119dcf6c9d4bac261444a615f868cd58dd5434 (diff) | |
download | passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar.gz passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar.bz2 passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar.lz passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar.xz passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.tar.zst passt-6b4e68383c66bd8a3863d9a708bae583d18dc056.zip |
passt, tap: Add --fd option
This passes a fully connected stream socket to passt.
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
[sbrivio: reuse fd_tap instead of adding a new descriptor,
imply --one-off on --fd, add to optstring and usage()]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.1')
-rw-r--r-- | passt.1 | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -298,6 +298,16 @@ Default is to probe a free socket, not accepting connections, starting from \fI/tmp/passt_1.socket\fR to \fI/tmp/passt_64.socket\fR. .TP +.BR \-F ", " \-\-fd " " \fIFD +Pass a pre-opened, connected socket to \fBpasst\fR. Usually the socket is opened +in the parent process and \fBpasst\fR inherits it when run as a child. This +allows the parent process to open sockets using another address family or +requiring special privileges. + +This option implies the behaviour described for \-\-one-off, once this socket +is closed. + +.TP .BR \-1 ", " \-\-one-off Quit after handling a single client connection, that is, once the client closes the socket, or once we get a socket error. |