summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-17 15:13:08 +0200
committerMartin Mares <mj@ucw.cz>2000-04-17 15:13:08 +0200
commitbd2d8190dd79645174beeef1a306c8df53db3b60 (patch)
tree022d1711ce692153a4683872dbe357c0a9b658be /proto/bgp/bgp.h
parent56a2bed46bf7713cd773b0fd0c097bcfc6345cc1 (diff)
downloadbird-bd2d8190dd79645174beeef1a306c8df53db3b60.tar
bird-bd2d8190dd79645174beeef1a306c8df53db3b60.zip
Honor standard communities (no_export, no_advertise, no_export_subconfed)
when exporting routes.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index ba4f2d4..f579ce6 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -151,4 +151,10 @@ int bgp_rx(struct birdsock *sk, int size);
#define BS_OPENCONFIRM 4
#define BS_ESTABLISHED 5
+/* Well-known communities */
+
+#define BGP_COMM_NO_EXPORT 0xffffff01 /* Don't export outside local AS / confed. */
+#define BGP_COMM_NO_ADVERTISE 0xffffff02 /* Don't export at all */
+#define BGP_COMM_NO_EXPORT_SUBCONFED 0xffffff03 /* NO_EXPORT even in local confederation */
+
#endif