summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-09-15 21:33:01 +0200
committerOndrej Filip <feela@network.cz>2004-09-15 21:33:01 +0200
commit4991756863538cc5168cc5f10b2599c84eafd8bf (patch)
tree673b5ebc7c7643cf0fbd38a26c162739794eab4d /proto/ospf
parent8910351c76af983411e09e04aff86ea5d9940cf1 (diff)
downloadbird-4991756863538cc5168cc5f10b2599c84eafd8bf.tar
bird-4991756863538cc5168cc5f10b2599c84eafd8bf.zip
Dont check netmask field on PTP links.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/hello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index 58d1423..d3145b9 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -24,7 +24,7 @@ ospf_hello_receive(struct ospf_hello_packet *ps,
mask = ps->netmask;
ipa_ntoh(mask);
- if ((ifa->type != OSPF_IT_VLINK) &&
+ if (((ifa->type != OSPF_IT_VLINK) || (ifa->type != OSPF_IT_PTP)) &&
((unsigned) ipa_mklen(mask) != ifa->iface->addr->pxlen))
{
log(L_ERR "%s%I%sbad netmask %I.", beg, faddr, rec, mask);