summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-04 11:03:31 +0200
committerMartin Mares <mj@ucw.cz>2000-05-04 11:03:31 +0200
commit1c1da87b271ee3db0045f31612d99894531ada54 (patch)
treec2c521a4960a6ee796a0e00bd612d83e633ebb51 /proto/bgp/bgp.h
parentd345cda5a1cea03a09e5a37c999e88c5177c8a9e (diff)
downloadbird-1c1da87b271ee3db0045f31612d99894531ada54.tar
bird-1c1da87b271ee3db0045f31612d99894531ada54.zip
Receive-only IPv6 BGP.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index a9f3413..37f2979 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -72,6 +72,10 @@ struct bgp_proto {
struct bgp_bucket *withdraw_bucket; /* Withdrawn routes */
unsigned startup_delay; /* Time to delay protocol startup by due to errors */
bird_clock_t last_connect; /* Time of last connect attempt */
+#ifdef IPV6
+ byte *mp_reach_start, *mp_unreach_start; /* Multiprotocol BGP attribute notes */
+ unsigned mp_reach_len, mp_unreach_len;
+#endif
};
struct bgp_prefix {
@@ -181,4 +185,8 @@ void bgp_log_error(struct bgp_proto *p, char *msg, unsigned code, unsigned subco
#define ORIGIN_EGP 1
#define ORIGIN_INCOMPLETE 2
+/* Address families */
+
+#define BGP_AF_IPV6 2
+
#endif