diff options
author | 2005-02-24 17:14:53 +0000 | |
---|---|---|
committer | 2005-02-24 17:14:53 +0000 | |
commit | 6d36d8acb4cfa43430ae2b763a03bb28e6f8f6b8 (patch) | |
tree | b38c226ace4947431598b8114242e52839840cd7 | |
parent | Close files after we are done with them; from mpech@ (diff) | |
download | wireguard-openbsd-6d36d8acb4cfa43430ae2b763a03bb28e6f8f6b8.tar.xz wireguard-openbsd-6d36d8acb4cfa43430ae2b763a03bb28e6f8f6b8.zip |
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.
-rw-r--r-- | usr.sbin/bgpd/rde_filter.c | 4 |
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) |