aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index d4661d8..f98daca 100644
--- a/passt.h
+++ b/passt.h
@@ -99,6 +99,7 @@ struct guest_addr {
* @dns_host: Use this DNS on the host for forwarding
* @addr_out: Optional source address for outbound traffic
* @ifname_out: Optional interface name to bind outbound sockets to
+ * @dns_host_resolv: @dns_host comes from host's resolv.conf: follow changes
* @no_copy_routes: Don't copy all routes when configuring target namespace
* @no_copy_addrs: Don't copy all addresses when configuring namespace
* @addr_fixed: Address was given explicitly (-a): don't update
@@ -120,6 +121,7 @@ struct ip4_ctx {
char ifname_out[IFNAMSIZ];
+ bool dns_host_resolv;
bool no_copy_routes;
bool no_copy_addrs;
bool addr_fixed;
@@ -141,6 +143,7 @@ struct ip4_ctx {
* @dns_host: Use this DNS on the host for forwarding
* @addr_out: Optional source address for outbound traffic
* @ifname_out: Optional interface name to bind outbound sockets to
+ * @dns_host_resolv: @dns_host comes from host's resolv.conf: follow changes
* @no_copy_routes: Don't copy all routes when configuring target namespace
* @no_copy_addrs: Don't copy all addresses when configuring namespace
* @addr_fixed: Address was given explicitly (-a): don't update
@@ -164,6 +167,7 @@ struct ip6_ctx {
char ifname_out[IFNAMSIZ];
+ bool dns_host_resolv;
bool no_copy_routes;
bool no_copy_addrs;
bool addr_fixed;
@@ -190,6 +194,7 @@ struct ip6_ctx {
* @no_netns_quit: In pasta mode, don't exit if fs-bound namespace is gone
* @netns_base: Base name for fs-bound namespace, if any, in pasta mode
* @netns_dir: Directory of fs-bound namespace, if any, in pasta mode
+ * @resolv_dir_fd: Directory of host's resolv.conf, if watched for changes
* @epollfd: File descriptor for epoll instance
* @fd_tap_listen: File descriptor for listening AF_UNIX socket, if any
* @fd_tap: AF_UNIX socket, tuntap device, or pre-opened socket
@@ -270,6 +275,8 @@ struct ctx {
char netns_base[PATH_MAX];
char netns_dir[PATH_MAX];
+ int resolv_dir_fd;
+
int epollfd;
int fd_tap_listen;
int fd_tap;