summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_ecommunity.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-11-27 16:32:45 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-11-30 15:29:43 +0100
commit2551b26e1c597476b4b96a13791e0ad976406653 (patch)
tree22ef095363fd045804e3b47504e99d45d46a4ab2 /bgpd/bgp_ecommunity.h
parentzebra: handle neighbor delete from kernel for ipv4 link-local (diff)
downloadfrr-2551b26e1c597476b4b96a13791e0ad976406653.tar.xz
frr-2551b26e1c597476b4b96a13791e0ad976406653.zip
bgpd: add new draft for redirect ip for flowspec
that new option will overwrite simpson draft. There is a new ecommunity option whose type is 0x1 and subtype is 0xc. That option is defined here on iana.org/assignments/bgp-extended-communities page: - bgp-extended-communities.xhtml#trans-ipv4 It contains the IP address to redirect traffic to. The understanding of the draft is the following one: - if that community is only present, then the ip contained inside will be chosen as nexthop. - if that community is provided along with simpson extended community, then only the new redirect ip draft will be used. however, both will be displayed. - in other cases, if there is only the simpson extended community, then the nexthop IP of the NLRI will be chosen. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
-rw-r--r--bgpd/bgp_ecommunity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h
index d43403ed8..519991da5 100644
--- a/bgpd/bgp_ecommunity.h
+++ b/bgpd/bgp_ecommunity.h
@@ -41,6 +41,10 @@
#define ECOMMUNITY_REDIRECT_VRF 0x08
#define ECOMMUNITY_TRAFFIC_MARKING 0x09
#define ECOMMUNITY_REDIRECT_IP_NH 0x00
+/* from IANA: bgp-extended-communities/bgp-extended-communities.xhtml
+ * 0x0c Flow-spec Redirect to IPv4 - draft-ietf-idr-flowspec-redirect
+ */
+#define ECOMMUNITY_FLOWSPEC_REDIRECT_IPV4 0x0c
/* Low-order octet of the Extended Communities type field for EVPN types */
#define ECOMMUNITY_EVPN_SUBTYPE_MACMOBILITY 0x00