freebsd-ports/net/openospfd/files/patch-ospfd_ospfd.h
Emanuel Haupt 86cd978706 Update to 4.2
PR:		120788
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Tested by:	Doichin Dokov <root@net1.cc>
Approved by:	maintainer timeout
2008-11-27 20:54:31 +00:00

13 lines
442 B
C

--- ospfd/ospfd.h.orig 2008-02-07 18:57:03.000000000 +0300
+++ ospfd/ospfd.h 2008-02-07 18:56:54.000000000 +0300
@@ -320,6 +320,10 @@
TAILQ_HEAD(lsa_head, lsa_entry);
TAILQ_HEAD(auth_md_head, auth_md);
+#if defined(__FreeBSD__) /* FreeBSD has no LINK_STATE_IS_UP macro. */
+#define LINK_STATE_IS_UP(_s) ((_s) >= LINK_STATE_UP)
+#endif /* defined(__FreeBSD__) */
+
struct iface {
LIST_ENTRY(iface) entry;
struct event hello_timer;