summaryrefslogtreecommitdiff
path: root/proto/bgp/attrs.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-07-04 21:31:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2012-07-16 01:33:02 +0200
commit26822d8fe1376b2ffd902a3b5caa47f81a88e74e (patch)
tree6ca5eb0756861b729cb62440a49123a58453a393 /proto/bgp/attrs.c
parentb7f3df79054aca327654c1fb4739c4ff02e59e6e (diff)
Finalize RA_ACCEPTED handling.
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r--proto/bgp/attrs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 4495c039..e5bc84dd 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -1258,7 +1258,8 @@ same_group(rte *r, u32 lpref, u32 lasn)
static inline int
use_deterministic_med(rte *r)
{
- return ((struct bgp_proto *) r->attrs->proto)->cf->deterministic_med;
+ struct proto *P = r->attrs->proto;
+ return (P->proto == &proto_bgp) && ((struct bgp_proto *) P)->cf->deterministic_med;
}
int