aboutsummaryrefslogtreecommitdiff
path: root/net/openbgpd/files/patch-bgpd_session.c
diff options
context:
space:
mode:
authorStefan Walter <stefan@FreeBSD.org>2008-12-17 15:58:32 +0000
committerStefan Walter <stefan@FreeBSD.org>2008-12-17 15:58:32 +0000
commit073943d1f3f2c04207ec379472ca1706d3dda456 (patch)
treedc44970c08bfca82825739873773caf8ca19acea /net/openbgpd/files/patch-bgpd_session.c
parente6377ab3b0026a8f261d8a5fce0d6757a990afb7 (diff)
downloadports-073943d1f3f2c04207ec379472ca1706d3dda456.tar.gz
ports-073943d1f3f2c04207ec379472ca1706d3dda456.zip
Notes
Diffstat (limited to 'net/openbgpd/files/patch-bgpd_session.c')
-rw-r--r--net/openbgpd/files/patch-bgpd_session.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/openbgpd/files/patch-bgpd_session.c b/net/openbgpd/files/patch-bgpd_session.c
new file mode 100644
index 000000000000..4bcaad94d8b7
--- /dev/null
+++ b/net/openbgpd/files/patch-bgpd_session.c
@@ -0,0 +1,13 @@
+--- bgpd/session.c 2008-03-18 15:24:06.000000000 +0100
++++ bgpd/session.c 2008-03-18 13:27:29.000000000 +0100
+@@ -52,6 +52,10 @@
+ #define PFD_SOCK_RCTL 4
+ #define PFD_LISTENERS_START 5
+
++#if defined(__FreeBSD__) /* FreeBSD has no LINK_STATE_IS_UP macro. */
++#define LINK_STATE_IS_UP(_s) ((_s) >= LINK_STATE_UP)
++#endif /* defined(__FreeBSD__) */
++
+ void session_sighdlr(int);
+ int setup_listeners(u_int *);
+ void init_conf(struct bgpd_config *);