From 41b612c31be05409e69e7365db82b3d1aefc4ca3 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 20 Jul 2011 23:40:20 +0200 Subject: OSPF NSSA support, part one. --- proto/ospf/hello.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto/ospf/hello.c') 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; } -- cgit v1.2.3