summaryrefslogtreecommitdiff
path: root/bgpd/bgp_rd.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-11-24 16:13:08 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-02-10 10:27:23 +0100
commit6f167d2363949dbbfac767b2c4bebf7b870febed (patch)
tree46389b9ef8e74d5b02096ff3a5c70e474b7d6cfc /bgpd/bgp_rd.h
parentad45cb7c040fc7b079751f9fdc77f0ae924d6d7e (diff)
bgpd: support for route-distinguisher format with 3 fields
The ietf proposes to define a RD with a 3 field separated by the ':' character. The last 2 fields stands for the usual fields, namely AS4B:NN, AS2B,NNNN, IP:NN. The first field stands for the kind of route distinguisher used. Today, except with the route-map, no other RD configuration supports this mode. Handle the support for this in FRR. Link: https://github.com/FRRouting/frr/blob/master/yang/ietf/ietf-routing-types.yang#L258 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_rd.h')
-rw-r--r--bgpd/bgp_rd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h
index aa9bc0b872..073eb7e114 100644
--- a/bgpd/bgp_rd.h
+++ b/bgpd/bgp_rd.h
@@ -27,6 +27,7 @@
#include "prefix.h"
/* RD types */
+#define RD_TYPE_UNDEFINED (-1)
#define RD_TYPE_AS 0
#define RD_TYPE_IP 1
#define RD_TYPE_AS4 2