opnsense-ports/net/openospfd/files/patch-RTF_LLINFO-ARP-v2-fix
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

26 lines
829 B
Text

diff --git a/ospfd/kroute.c b/ospfd/kroute.c
index b46fa30..acc2a32 100644
--- ospfd/kroute.c
+++ ospfd/kroute.c
@@ -1174,8 +1174,10 @@ fetchtable(void)
if ((sa = rti_info[RTAX_DST]) == NULL)
continue;
+#if defined(RTF_LLINFO) /* FreeBSD dropped RTF_LLINFO after ARP-v2 rework */
if (rtm->rtm_flags & RTF_LLINFO) /* arp cache */
continue;
+#endif /* defined(RTF_LLINFO) */
if ((kr = calloc(1, sizeof(struct kroute_node))) == NULL) {
log_warn("fetchtable");
@@ -1371,8 +1373,10 @@ dispatch_rtmsg(void)
if (rtm->rtm_errno) /* failed attempts... */
continue;
+#if defined(RTF_LLINFO) /* FreeBSD dropped RTF_LLINFO after ARP-v2 rework */
if (rtm->rtm_flags & RTF_LLINFO) /* arp cache */
continue;
+#endif /* defined(RTF_LLINFO) */
#ifdef RTF_MPATH
if (rtm->rtm_flags & RTF_MPATH)