From: Roy Marples Date: Fri, 8 Apr 2016 20:35:09 +0000 (+0000) Subject: Don't dick with IPv4LL route reactions on BSD. X-Git-Tag: v6.10.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b62ca4490e7a786fa2738f38aa01686b598a1b9b;p=thirdparty%2Fdhcpcd.git Don't dick with IPv4LL route reactions on BSD. --- diff --git a/ipv4ll.c b/ipv4ll.c index 07d4a5dc..caee1ecb 100644 --- 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; }