From bd2d8190dd79645174beeef1a306c8df53db3b60 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 17 Apr 2000 13:13:08 +0000 Subject: Honor standard communities (no_export, no_advertise, no_export_subconfed) when exporting routes. --- proto/bgp/bgp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/bgp/bgp.h') 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 -- cgit v1.2.3