]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv4LL: Fix build if not enabled.
authorRoy Marples <roy@marples.name>
Tue, 22 Jan 2019 21:21:25 +0000 (21:21 +0000)
committerRoy Marples <roy@marples.name>
Tue, 22 Jan 2019 21:21:25 +0000 (21:21 +0000)
src/dhcpcd.c

index 8f2c38a871c4578d11f357f207aea4e5e0f817a2..6d99e3791ed5646f97300281a7940b0274bb0db8 100644 (file)
@@ -765,7 +765,9 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags,
 #ifdef NOCARRIER_PRESERVE_IP
                                        dhcpcd_drop(ifp, 0);
 #endif
+#ifdef IPV4LL
                                        ipv4ll_reset(ifp);
+#endif
                                }
                        }
                        dhcpcd_initstate(ifp, 0);