]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't dick with IPv4LL route reactions on BSD.
authorRoy Marples <roy@marples.name>
Fri, 8 Apr 2016 20:35:09 +0000 (20:35 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Apr 2016 20:35:09 +0000 (20:35 +0000)
ipv4ll.c

index 07d4a5dca660a3988a8a8533fc770b94449ec812..caee1ecbf3d24562ed1cb1ce75d0a5e68b4dc5a3 100644 (file)
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -448,6 +448,9 @@ ipv4ll_freedrop(struct interface *ifp, int drop)
 int
 ipv4ll_handlert(struct dhcpcd_ctx *ctx, __unused int cmd, const struct rt *rt)
 {
+/* This may cause issues in BSD systems, where running as a single dhcpcd
+ * daemon would solve this issue easily. */
+#ifdef HAVE_ROUTE_METRIC
        struct interface *ifp;
 
        /* Only interested in default route changes. */
@@ -463,6 +466,7 @@ ipv4ll_handlert(struct dhcpcd_ctx *ctx, __unused int cmd, const struct rt *rt)
                if_initrt(ifp);
                ipv4_buildroutes(ctx);
        }
+#endif
 
        return 0;
 }