From 422de9e23a64eef17d9049c16925677fca64ad9f Mon Sep 17 00:00:00 2001 From: Julian Wollrath Date: Sat, 30 May 2020 14:21:04 +0000 Subject: [PATCH] Linux: File compile without plugins --- src/if-linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/if-linux.c b/src/if-linux.c index 9e87cef4..7c8d7e2b 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -891,9 +891,11 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm) } if (nlm->nlmsg_type == RTM_DELLINK) { +#ifdef PLUGIN_DEV /* If are listening to a dev manager, let that remove * the interface rather than the kernel. */ if (dev_listening(ctx) < 1) +#endif dhcpcd_handleinterface(ctx, -1, ifn); return 0; } @@ -910,9 +912,11 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm) /* Check for a new interface */ ifp = if_findindex(ctx->ifaces, (unsigned int)ifi->ifi_index); if (ifp == NULL) { +#ifdef PLUGIN_DEV /* If are listening to a dev manager, let that announce * the interface rather than the kernel. */ if (dev_listening(ctx) < 1) +#endif dhcpcd_handleinterface(ctx, 1, ifn); return 0; } -- 2.47.2