freebsd-ports/net/openospfd/files/patch-RTF_LLINFO-ARP-v2-fix
Wesley Shields fbe3f10167 - Update to 4.3.
- Remove unnecessary hash.h stuff.
- Pass maintainer to submitter.

PR:		ports/129881
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
2009-05-10 15:41:01 +00: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)