summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr_evpn.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-02-09 08:44:13 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2017-02-14 13:59:00 +0100
commit31689a53f1314f803f50fe07c25a0e51c46a5279 (patch)
tree4ea3d62a91d8fa79ae0cfea64b306abba09e83d4 /bgpd/bgp_attr_evpn.h
parentlib: simplify str2mac and use struct ethaddr structure (diff)
downloadfrr-31689a53f1314f803f50fe07c25a0e51c46a5279.tar.xz
frr-31689a53f1314f803f50fe07c25a0e51c46a5279.zip
bgpd: change str2mac call api
With the changed API, some adaptations are done in rfapi code, and in bgpd evpn code. For evpn code, the internal storage of routermac addr is kept as struct ethaddr structure. Also the evpn add_routermac api has as incoming parameter a struct ethaddr param. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_attr_evpn.h')
-rw-r--r--bgpd/bgp_attr_evpn.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_attr_evpn.h b/bgpd/bgp_attr_evpn.h
index 7fa7256ca..e6da7e708 100644
--- a/bgpd/bgp_attr_evpn.h
+++ b/bgpd/bgp_attr_evpn.h
@@ -50,11 +50,10 @@ struct bgp_route_evpn {
};
extern int str2esi(const char *str, struct eth_segment_id *id);
-extern int str2mac(const char *str, char *mac);
extern char *esi2str(struct eth_segment_id *id);
extern char *ecom_mac2str(char *ecom_mac);
-extern void bgp_add_routermac_ecom(struct attr *attr, char *routermac);
+extern void bgp_add_routermac_ecom(struct attr *attr, struct ethaddr *routermac);
extern int bgp_build_evpn_prefix(int type, uint32_t eth_tag,
struct prefix *dst);
#endif /* _QUAGGA_BGP_ATTR_EVPN_H */