summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-28 00:39:57 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-28 00:39:57 +0200
commitba321706578de8402d50214a9e79a65835cdd821 (patch)
treea76b5e241ed7f7c698890f2f9fd26a3c35ed07b2 /proto
parent48b0814ace2d05f9fef093d9f309bfa186a6f365 (diff)
downloadbird-ba321706578de8402d50214a9e79a65835cdd821.tar
bird-ba321706578de8402d50214a9e79a65835cdd821.zip
Better support for /31 networks.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index b5a509a..6faed3a 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -361,7 +361,7 @@ ospf_iface_sm(struct ospf_iface *ifa, int event)
u8
ospf_iface_clasify(struct iface *ifa, struct ifa *addr)
{
- if (addr->flags & IA_UNNUMBERED)
+ if (ipa_nonzero(addr->opposite))
return OSPF_IT_PTP;
if ((ifa->flags & (IF_MULTIACCESS | IF_MULTICAST)) ==