Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
const char *prefix;
/* For parse Extended Community attribute tupple. */
- struct ecommunity_as {
- as_t as;
- u_int32_t val;
- } eas;
-
- struct ecommunity_ip {
- struct in_addr ip;
- u_int16_t val;
- } eip;
+ struct ecommunity_as eas;
+ struct ecommunity_ip eip;
/* Determine prefix for string, if any. */
char *str;
};
+struct ecommunity_as {
+ as_t as;
+ uint32_t val;
+};
+
+struct ecommunity_ip {
+ struct in_addr ip;
+ uint16_t val;
+};
+
/* Extended community value is eight octet. */
struct ecommunity_val {
char val[ECOMMUNITY_SIZE];
#include "bgpd/bgp_evpn_private.h"
#include "bgpd/bgp_zebra.h"
#include "bgpd/bgp_vty.h"
+#include "bgpd/bgp_ecommunity.h"
#define SHOW_DISPLAY_STANDARD 0
#define SHOW_DISPLAY_TAGS 1
{
u_char *pnt;
u_char type, sub_type;
- struct ecommunity_as {
- as_t as;
- u_int32_t val;
- } eas;
- struct ecommunity_ip {
- struct in_addr ip;
- u_int16_t val;
- } eip;
+ struct ecommunity_as eas;
+ struct ecommunity_ip eip;
struct listnode *node, *nnode;
struct bgpevpn *tmp_vpn;
json_object *json_rt = NULL;