1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-10 01:25:34 +02:00

conf, tap: Add option to quit once the client closes the connection

This is practical to avoid explicit lifecycle management in users,
e.g. libvirtd, and is trivial to implement.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Stefano Brivio 2022-10-07 04:01:56 +02:00
parent 9de65dd3f4
commit a62ed181db
4 changed files with 27 additions and 1 deletions

View file

@ -196,6 +196,7 @@ struct ctx {
char sock_path[UNIX_PATH_MAX];
char pcap[PATH_MAX];
char pid_file[PATH_MAX];
int one_off;
int pasta_netns_fd;