diff options
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/rde_filter.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index f07f32d01e6..9cb130fa201 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.13 2004/02/23 16:46:24 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.14 2004/02/24 15:44:33 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -563,7 +563,7 @@ aspath_write(void *p, u_int16_t len, struct aspath *aspath, u_int16_t myAS, u_int8_t type, attr_flag = ATTR_WELL_KNOWN; prepend = aspath->hdr.prepend + (ebgp ? 1 : 0); - + if (prepend > 255) /* lunatic prepends need to be blocked in the parser */ return (-1); diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c index 7423fbf63e2..c46fc6ef910 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.2 2004/02/24 15:43:03 claudio Exp $ */ +/* $OpenBSD: rde_filter.c,v 1.3 2004/02/24 15:44:33 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -32,7 +32,7 @@ rde_filter(struct rde_peer *peer, struct attr_flags *attrs, { struct filter_rule *f; enum filter_actions action = ACTION_ALLOW; /* default allow */ - + TAILQ_FOREACH(f, rules_l, entries) { if (dir != f->dir) continue; @@ -101,7 +101,7 @@ rde_filter_match(struct filter_rule *f, struct attr_flags *attrs, default: fatalx("rde_filter_match: unsupported address family"); } - + /* test prefixlen stuff too */ switch (f->match.prefixlen.op) { case OP_NONE: @@ -158,7 +158,7 @@ rde_filter_match(struct filter_rule *f, struct attr_flags *attrs, } /* NOTREACHED */ } - + /* matched somewhen or is anymatch rule */ return (1); } |