mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixes a bug in BSD kernel interfacing code.
The bug was introduced in 05476c4d04
.
This commit is contained in:
parent
751482899c
commit
029ec22d0a
@ -261,6 +261,7 @@ krt_send_route(struct krt_proto *p, int cmd, rte *e)
|
|||||||
msg.rtm.rtm_flags |= RTF_GATEWAY;
|
msg.rtm.rtm_flags |= RTF_GATEWAY;
|
||||||
msg.rtm.rtm_addrs |= RTA_GATEWAY;
|
msg.rtm.rtm_addrs |= RTA_GATEWAY;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef RTF_REJECT
|
#ifdef RTF_REJECT
|
||||||
case RTD_UNREACHABLE:
|
case RTD_UNREACHABLE:
|
||||||
#endif
|
#endif
|
||||||
@ -280,7 +281,7 @@ krt_send_route(struct krt_proto *p, int cmd, rte *e)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sockaddr_fill(&dst, BIRD_AF, i->addr->ip, NULL, 0);
|
sockaddr_fill(&gate, BIRD_AF, i->addr->ip, NULL, 0);
|
||||||
msg.rtm.rtm_addrs |= RTA_GATEWAY;
|
msg.rtm.rtm_addrs |= RTA_GATEWAY;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user