summaryrefslogtreecommitdiffstats
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-06-21 10:02:46 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 16:09:37 +0200
commitd37ba5499ec01284c91250db0c17016c37f13a84 (patch)
treef68caea9e457a1d7381ca07b2232a74a6844af71 /lib/prefix.h
parentbgpd: Fix incorrect AFI reference (diff)
downloadfrr-d37ba5499ec01284c91250db0c17016c37f13a84.tar.xz
frr-d37ba5499ec01284c91250db0c17016c37f13a84.zip
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 <mitesh@cumulusnetworks.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 5f2b57ccc..0f3ad562d 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)