changeset 5285:7754eb6cd2eb draft

Linux: File compile without plugins
author Julian Wollrath <julian@haerkules.de>
date Sat, 30 May 2020 14:21:04 +0000
parents 2b5f56e079b0
children b820f26385b7
files src/if-linux.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-linux.c	Sat May 30 14:01:47 2020 +0000
+++ b/src/if-linux.c	Sat May 30 14:21:04 2020 +0000
@@ -891,9 +891,11 @@
 	}
 
 	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 @@
 	/* 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;
 	}