summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-07-20 23:40:20 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-07-20 23:48:06 +0200
commit41b612c31be05409e69e7365db82b3d1aefc4ca3 (patch)
treef6ab1441f244fd5e80a816ded38310c4489c97fe /proto/ospf/hello.c
parent9008579b97239564e1dcac855cf726fa9ab7dabd (diff)
downloadbird-41b612c31be05409e69e7365db82b3d1aefc4ca3.tar
bird-41b612c31be05409e69e7365db82b3d1aefc4ca3.zip
OSPF NSSA support, part one.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index 0a94e4c..d04cb54 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -94,10 +94,10 @@ ospf_hello_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa,
return;
}
- tmp = !(ps->options & OPT_E);
- if (tmp != !!ifa->oa->stub)
+ /* Check whether bits E, N match */
+ if ((ps->options ^ ifa->oa->options) & (OPT_E | OPT_N))
{
- log(L_ERR "%s%I - stub area flag mismatch (%d)", beg, faddr, tmp);
+ log(L_ERR "%s%I - area type mismatch (%x)", beg, faddr, ps->options);
return;
}