]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: add prefix support for evpn route type 5
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 12 Jan 2017 09:14:18 +0000 (10:14 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 Feb 2017 12:58:57 +0000 (13:58 +0100)
The requirement from draft-ietf-bess-evpn-prefix-advertisement-03
mentions that the Eth-Tag ID, IP Prefix Length and IP Prefix will be
part of the route key used by BGP. The ip prefix length is then appended
to the evpn_addr. In addition to this, the ethernet tag ID is reused.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/prefix.h

index b96a17cd084961db5556910ad512c250c5d41bc7..4a66b79502d815704024c14bfef45c15cf131596 100644 (file)
@@ -62,6 +62,8 @@ struct evpn_addr
 #define IP_ADDR_NONE      0x0
 #define IP_ADDR_V4        0x1
 #define IP_ADDR_V6        0x2
+#define IP_PREFIX_V4      0x4
+#define IP_PREFIX_V6      0x8
   struct ethaddr mac;
   uint32_t eth_tag;
   u_char ip_prefix_length;