RTF_CLONING is removed in FreeBSD 8.

This commit is contained in:
Ondrej Zajicek 2010-02-10 14:57:16 +01:00
parent c27b2449d1
commit 7d1966689f

View file

@ -172,8 +172,10 @@ krt_sock_send(int cmd, rte *e)
case RTD_DEVICE: case RTD_DEVICE:
if(i) if(i)
{ {
#ifdef RTF_CLONING
if (cmd == RTM_ADD && (i->flags & IF_MULTIACCESS) != IF_MULTIACCESS) /* PTP */ if (cmd == RTM_ADD && (i->flags & IF_MULTIACCESS) != IF_MULTIACCESS) /* PTP */
msg.rtm.rtm_flags |= RTF_CLONING; msg.rtm.rtm_flags |= RTF_CLONING;
#endif
if(!i->addr) { if(!i->addr) {
log(L_ERR "KIF: interface \"%s\" has no IP addess", i->name); log(L_ERR "KIF: interface \"%s\" has no IP addess", i->name);