From 600c7ff5380f80544f5b9fdd595d757303c013fe Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 3 Feb 2006 16:40:58 +0000 Subject: Doh! Fix stupid copy paste error. Setting the community type to the AS instead of the more obvious type produces really funny errors and gives you some happy hours of debugging. --- usr.sbin/bgpd/rde_filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c index 9917a2beec1..56d96a4d4bf 100644 --- a/usr.sbin/bgpd/rde_filter.c +++ b/usr.sbin/bgpd/rde_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_filter.c,v 1.43 2006/02/02 14:06:05 claudio Exp $ */ +/* $OpenBSD: rde_filter.c,v 1.44 2006/02/03 16:40:57 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker @@ -181,7 +181,7 @@ rde_apply_set(struct rde_aspath *asp, struct filter_set_head *sh, type = peer->conf.remote_as; break; default: - type = set->action.community.as; + type = set->action.community.type; break; } @@ -241,7 +241,7 @@ rde_filter_match(struct filter_rule *f, struct rde_aspath *asp, type = peer->conf.remote_as; break; default: - type = f->match.community.as; + type = f->match.community.type; break; } -- cgit v1.2.3