From: Julian Wollrath Date: Sat, 30 May 2020 14:21:04 +0000 (+0000) Subject: Linux: File compile without plugins X-Git-Tag: v9.1.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=422de9e23a64eef17d9049c16925677fca64ad9f;p=thirdparty%2Fdhcpcd.git Linux: File compile without plugins --- 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; }