From: Roy Marples Date: Mon, 9 Sep 2019 20:18:36 +0000 (+0100) Subject: BSD: avoid RTF_WASCLONED routes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d8284cea359f4138217937025fb60f15835384b;p=thirdparty%2Fdhcpcd.git BSD: avoid RTF_WASCLONED routes --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 8348d42d..89013b11 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -653,6 +653,12 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, const struct rt_msghdr *rtm) return -1; } #endif +#ifdef RTF_WASCLONED + if (rtm->rtm_flags & RTF_WASCLONED) { + errno = ENOTSUP; + return -1; + } +#endif #ifdef RTF_LOCAL if (rtm->rtm_flags & RTF_LOCAL) { errno = ENOTSUP;