From 4470c22cad9c6b928287e506788ed02b22e7854a Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 12 Jan 2017 10:14:18 +0100 Subject: [PATCH] lib: add prefix support for evpn route type 5 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 --- lib/prefix.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/prefix.h b/lib/prefix.h index b96a17cd08..4a66b79502 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -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; -- 2.39.5