aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2022-11-17 18:49:34 +0000
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:40:47 +0100
commit6b4e68383c66bd8a3863d9a708bae583d18dc056 (patch)
tree1cca0effcbfdc3f38856638d7ba227472ba6acf2 /passt.c
parent15119dcf6c9d4bac261444a615f868cd58dd5434 (diff)
downloadpasst-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.c')
-rw-r--r--passt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/passt.c b/passt.c
index 7d323c2..8b2c50d 100644
--- a/passt.c
+++ b/passt.c
@@ -255,7 +255,6 @@ int main(int argc, char **argv)
quit_fd = pasta_netns_quit_init(&c);
- c.fd_tap = c.fd_tap_listen = -1;
tap_sock_init(&c);
clock_gettime(CLOCK_MONOTONIC, &now);