aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-14 12:17:47 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-14 13:20:34 +0200
commit54a19002df18d2f19fc455c9b1ef9f88b96b7bd1 (patch)
tree20bba67589f85a708f626273979dae26a8530774 /passt.h
parent1cbd2c8c6b3a564aba84abcd20f05c5c646d2fb4 (diff)
downloadpasst-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar.gz
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar.bz2
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar.lz
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar.xz
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.tar.zst
passt-54a19002df18d2f19fc455c9b1ef9f88b96b7bd1.zip
conf: Add -P, --pid, to specify a file where own PID is written to
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index e2bfe9d..9e33436 100644
--- a/passt.h
+++ b/passt.h
@@ -91,6 +91,7 @@ enum passt_modes {
* @stderr: Force logging to stderr
* @sock_path: Path for UNIX domain socket
* @pcap: Path for packet capture file
+ * @pid_file: Path to PID file, empty string if not configured
* @pasta_netns_fd: File descriptor for network namespace in pasta mode
* @pasta_userns_fd: File descriptor for user namespace in pasta mode
* @netns_only: In pasta mode, don't join or create a user namespace
@@ -142,6 +143,7 @@ struct ctx {
int stderr;
char sock_path[UNIX_PATH_MAX];
char pcap[PATH_MAX];
+ char pid_file[PATH_MAX];
int pasta_netns_fd;
int pasta_userns_fd;