en = ecom_mac;
en += 2;
- return mac2str(en, NULL, 0);
+ return prefix_mac2str(en, NULL, 0);
}
/* dst prefix must be AF_INET or AF_INET6 prefix, to forge EVPN prefix */
vty_out (vty, "%% Malformed ESI%s", VTY_NEWLINE);
return CMD_WARNING;
}
- if( routermac && str2mac (routermac, NULL) == 0)
+ if( routermac && prefix_str2mac (routermac, NULL) == 0)
{
vty_out (vty, "%% Malformed Router MAC%s", VTY_NEWLINE);
return CMD_WARNING;
if( routermac)
{
bgp_static->router_mac = XCALLOC (MTYPE_ATTR, ETHER_ADDR_LEN+1);
- str2mac (routermac, bgp_static->router_mac);
+ prefix_str2mac (routermac, bgp_static->router_mac);
}
if (gwip)
prefix_copy (&bgp_static->gatewayIp, &gw_ip);
char *esi = NULL;
if(bgp_static->router_mac)
- macrouter = mac2str(bgp_static->router_mac, NULL, 0);
+ macrouter = prefix_mac2str(bgp_static->router_mac, NULL, 0);
if(bgp_static->eth_s_id)
esi = esi2str(bgp_static->eth_s_id);
p = &rn->p;
char *
rfapiEthAddr2Str (const struct ethaddr *ea, char *buf, int bufsize)
{
- return mac2str (ea->octet, buf, bufsize);
+ return prefix_mac2str (ea->octet, buf, bufsize);
}
int