aboutsummaryrefslogtreecommitdiffstats
path: root/net/openospfd/files/patch-RTF_LLINFO-ARP-v2-fix
blob: 1bc2a955fecbb5a834e9a0b97499899ddb488975 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)