ports/net/olsrd/files/patch-src_bsd_kernel__routes.c
Bernhard Froehlich 80701d3484 net/olsrd:
- Update to 0.9.8
- Switch to fetch from GitHub because they don't provide tarballs anymore
- Fix portlint warnings
- Fix some GNUisms (cp -t)
- Fix compile error when RTF_CLONING is not defined

PR:		240563
Submitted by:	myself
Approved by:	Nikola Kolev <koue@chaosophia.net> (maintainer)
MFH:		2019Q4
2019-10-01 14:43:18 +00:00

12 lines
383 B
C

--- src/bsd/kernel_routes.c.orig 2019-08-11 08:09:47 UTC
+++ src/bsd/kernel_routes.c
@@ -351,7 +351,9 @@ add_del_route6(const struct rt_entry *rt, int add)
memcpy(walker, &sdl, sizeof(sdl));
walker += sdl_size;
rtm->rtm_addrs |= RTA_GATEWAY;
+#ifdef RTF_CLONING
rtm->rtm_flags |= RTF_CLONING;
+#endif /* RTF_CLONING */
rtm->rtm_flags &= ~RTF_GATEWAY;
}