diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-14 12:17:47 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-14 13:20:34 +0200 |
commit | 54a19002df18d2f19fc455c9b1ef9f88b96b7bd1 (patch) | |
tree | 20bba67589f85a708f626273979dae26a8530774 /passt.h | |
parent | 1cbd2c8c6b3a564aba84abcd20f05c5c646d2fb4 (diff) | |
download | passt-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |