aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/passt.c b/passt.c
index fa7afc5..1c4f594 100644
--- a/passt.c
+++ b/passt.c
@@ -69,6 +69,7 @@ struct ctx passt_ctx = {
.fd_control_listen = -1,
.fd_repair_listen = -1,
.pasta_netns_fd = -1,
+ .resolv_dir_fd = -1,
.device_state_fd = -1,
};
@@ -92,6 +93,7 @@ char *epoll_type_str[] = {
[EPOLL_TYPE_NL_NEIGH] = "netlink neighbour notifier socket",
[EPOLL_TYPE_CONF_LISTEN] = "configuration listening socket",
[EPOLL_TYPE_CONF] = "configuration socket",
+ [EPOLL_TYPE_RESOLV_INOTIFY] = "resolv.conf inotify watch",
};
static_assert(ARRAY_SIZE(epoll_type_str) == EPOLL_NUM_TYPES,
"epoll_type_str[] doesn't match enum epoll_type");
@@ -302,6 +304,9 @@ static void passt_worker(void *opaque, int nfds, struct epoll_event *events)
case EPOLL_TYPE_CONF:
conf_handler(c, eventmask);
break;
+ case EPOLL_TYPE_RESOLV_INOTIFY:
+ conf_resolv_handler(c, ref.fd);
+ break;
default:
/* Can't happen */
assert(0);