From ba321706578de8402d50214a9e79a65835cdd821 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 28 Apr 2010 00:39:57 +0200 Subject: Better support for /31 networks. --- proto/ospf/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto') 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)) == -- cgit v1.2.3