summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-02-24 17:14:54 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-02-24 17:14:54 +0000
commit5c0b4cfc036a9671ae35061a0e824e3d3c49c1f1 (patch)
tree868158dba482a7876482b8a22433d34ca1b0524d /usr.sbin
parent968f248c1f176379b701458f6d2eb9ddd1d671ef (diff)
Add two missing breaks and suddenly using filter has no strange side effects.
Sometimes it is good to look at the rib output of a test box.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde_filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c
index 135a413557d..819dc6117de 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.23 2004/12/23 16:09:26 henning Exp $ */
+/* $OpenBSD: rde_filter.c,v 1.24 2005/02/24 17:14:53 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -94,9 +94,11 @@ rde_apply_set(struct rde_aspath *asp, struct filter_set_head *sh,
switch (set->type) {
case ACTION_SET_LOCALPREF:
asp->lpref = set->action.metric;
+ break;
case ACTION_SET_MED:
asp->flags |= F_ATTR_MED | F_ATTR_MED_ANNOUNCE;
asp->med = set->action.metric;
+ break;
case ACTION_SET_PREPEND_SELF:
/* don't apply if this is a incoming default override */
if (dir == DIR_DEFAULT_IN)