From: Ondrej Zajicek Date: Wed, 10 Feb 2010 13:57:16 +0000 (+0100) Subject: RTF_CLONING is removed in FreeBSD 8. X-Git-Tag: v1.2.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d1966689f3f748d8bfa36eef64ced6a750ecb47;p=thirdparty%2Fbird.git RTF_CLONING is removed in FreeBSD 8. --- diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 4842a6b8a..a52796576 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);