summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-02-10 14:57:16 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-02-10 14:57:16 +0100
commit7d1966689f3f748d8bfa36eef64ced6a750ecb47 (patch)
treec0ea57482bbdf9fe4a32ce66e40a962334367918
parentc27b2449d1f57e780974ed13fbd572a48e2a3602 (diff)
downloadbird-7d1966689f3f748d8bfa36eef64ced6a750ecb47.tar
bird-7d1966689f3f748d8bfa36eef64ced6a750ecb47.zip
RTF_CLONING is removed in FreeBSD 8.
-rw-r--r--sysdep/bsd/krt-sock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 4842a6b..a527965 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -172,8 +172,10 @@ krt_sock_send(int cmd, rte *e)
case RTD_DEVICE:
if(i)
{
+#ifdef RTF_CLONING
if (cmd == RTM_ADD && (i->flags & IF_MULTIACCESS) != IF_MULTIACCESS) /* PTP */
msg.rtm.rtm_flags |= RTF_CLONING;
+#endif
if(!i->addr) {
log(L_ERR "KIF: interface \"%s\" has no IP addess", i->name);