[PATCH 2/3] BSD: don't complain about interfaces without IP addresses
Vincent Bernat
vincent at bernat.ch
Mon Aug 12 13:57:39 CEST 2019
Without this patch, BIRD complains about interfaces without an IP
address:
2019-08-12 07:41:26 <ERR> KIF: Invalid interface address 0.0.0.0 for vtnet2
---
sysdep/bsd/krt-sock.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index f0cebd11c5b7..f92cf1a68dc6 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -651,6 +651,8 @@ krt_read_addr(struct ks_msg *msg, int scan)
imask = ipa_from_sa(&mask);
ibrd = ipa_from_sa(&brd);
+ if (ipa_zero(iaddr))
+ return;
if ((masklen = ipa_masklen(imask)) < 0)
{
--
2.23.0.rc1
More information about the Bird-users
mailing list