From a62ed181db9ba7d85d057365d5331dd35026247f Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 7 Oct 2022 04:01:56 +0200 Subject: 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 Reviewed-by: David Gibson --- passt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'passt.h') diff --git a/passt.h b/passt.h index de79e7b..67281db 100644 --- a/passt.h +++ b/passt.h @@ -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; -- cgit v1.2.3