diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-20 23:40:20 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-20 23:48:06 +0200 |
commit | 41b612c31be05409e69e7365db82b3d1aefc4ca3 (patch) | |
tree | f6ab1441f244fd5e80a816ded38310c4489c97fe /proto/ospf/hello.c | |
parent | 9008579b97239564e1dcac855cf726fa9ab7dabd (diff) |
OSPF NSSA support, part one.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r-- | proto/ospf/hello.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index 0a94e4cb..d04cb54c 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; } |