summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-24 14:14:05 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-24 14:14:05 +0000
commitacb4f4133fe3625855638ae187d2767f373cfb17 (patch)
treec0587fc97df0f1005de0c7578c90eaca67c3f7c0 /usr.sbin/bgpd/rde.h
parent6b895460de80add200401b6f7510c271241f723d (diff)
Check if filter changed on a per peer basis. This should speed up the
table run done later as many filter evaluations can be skipped. From the softreconfig in tree. Looks good henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 2826417c304..724bcdf54cc 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.86 2006/01/24 13:34:33 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.87 2006/01/24 14:14:04 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -69,6 +69,8 @@ struct rde_peer {
u_int32_t up_nlricnt;
u_int32_t up_wcnt;
enum peer_state state;
+ u_int8_t reconf_in; /* in filter changed */
+ u_int8_t reconf_out; /* out filter changed */
};
#define AS_SET 1
@@ -371,7 +373,7 @@ void rde_apply_set(struct rde_aspath *, struct filter_set_head *,
sa_family_t, struct rde_peer *, enum directions);
int rde_filter_community(struct rde_aspath *, int, int);
int rde_filter_equal(struct filter_head *, struct filter_head *,
- enum directions);
+ struct rde_peer *, enum directions);
/* util.c */
u_int16_t aspath_extract(const void *, int);