From d37ba5499ec01284c91250db0c17016c37f13a84 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Wed, 21 Jun 2017 01:02:46 -0700 Subject: bgpd, lib, vtysh: Added support for mac filtering in route-maps 1. Added support to create mac filters 2. Enabled route-map commands for EVPN address family 3. Provision to add mac filters under match clause in route-maps Ticket: CM-16349 Review: CCR-6190 Unit-test: Manual (logs attached to ticket) Signed-off-by: Mitesh Kanjariya --- lib/prefix.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/prefix.h') diff --git a/lib/prefix.h b/lib/prefix.h index 5f2b57ccce..0f3ad562d9 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -293,6 +293,7 @@ extern int prefix_cmp(const struct prefix *, const struct prefix *); extern int prefix_common_bits(const struct prefix *, const struct prefix *); extern void prefix_copy(struct prefix *dest, const struct prefix *src); extern void apply_mask(struct prefix *); +extern int prefix_eth_same(struct prefix_eth *p1, struct prefix_eth *p2); extern struct prefix *sockunion2prefix(const union sockunion *dest, const union sockunion *mask); @@ -356,6 +357,7 @@ static inline int ipv6_martian(struct in6_addr *addr) } extern int all_digit(const char *); +extern int macstr2prefix_evpn(const char *str, struct prefix_evpn *p); /* NOTE: This routine expects the address argument in network byte order. */ static inline int ipv4_martian(struct in_addr *addr) -- cgit v1.2.3