diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-08 14:03:41 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-08 14:03:41 +0000 |
commit | 3035ded84a27dbb93640b134ee299e40bdfab886 (patch) | |
tree | 6dd34ebd4900befc84450301a8a4f68638a58aa9 /usr.sbin/bgpd/rde.h | |
parent | 492b87f62fba2d4de8dafac43bca486a2220fcde (diff) |
Big AID change part two. This changes the mp capability into an array of
flags. This makes a lot of code much easier since the comparison is now
trivial. Additionally calculate the negotiated capabilities for a session
in the SE and pass that and only that to the RDE. This makes the decisions
in the RDE a lot easier. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index 3079802dc8b..da899b1255b 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.123 2009/12/01 14:28:05 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.124 2009/12/08 14:03:40 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and @@ -60,8 +60,7 @@ struct rde_peer { struct uplist_prefix withdraws; struct uplist_attr updates6; struct uplist_prefix withdraws6; - struct capabilities capa_announced; - struct capabilities capa_received; + struct capabilities capa; u_int64_t prefix_rcvd_update; u_int64_t prefix_rcvd_withdraw; u_int64_t prefix_sent_update; @@ -417,7 +416,7 @@ int up_generate(struct rde_peer *, struct rde_aspath *, void up_generate_updates(struct filter_head *, struct rde_peer *, struct prefix *, struct prefix *); void up_generate_default(struct filter_head *, struct rde_peer *, - sa_family_t); + u_int8_t); int up_dump_prefix(u_char *, int, struct uplist_prefix *, struct rde_peer *); int up_dump_attrnlri(u_char *, int, struct rde_peer *); |