Commit 2bb3ffe9 authored by GAO Bin's avatar GAO Bin
Browse files

mem_switch: fix typo

parent 5f9bab83
...@@ -572,14 +572,14 @@ int main(int argc, char *argv[]) { ...@@ -572,14 +572,14 @@ int main(int argc, char *argv[]) {
uint8_t *temp = (uint8_t *) malloc(6); uint8_t *temp = (uint8_t *) malloc(6);
memcpy(temp, (const uint8_t *)ent.node_mac.ether_addr_octet, 6); memcpy(temp, (const uint8_t *)ent.node_mac.ether_addr_octet, 6);
MAC node_mac((const uint8_t *) temp); MAC node_mac((const uint8_t *) temp);
bool exisiting = false; bool existing = false;
for (auto iter = mac_table.begin(); iter != mac_table.end(); ++iter) { for (auto iter = mac_table.begin(); iter != mac_table.end(); ++iter) {
if (iter->first == node_mac){ if (iter->first == node_mac){
exisiting = true; existing = true;
break; break;
} }
} }
if (exisiting){ if (existing){
break; break;
}else { }else {
printf("port id for %s is %lu\n", netmem_name.c_str(), port_i); printf("port id for %s is %lu\n", netmem_name.c_str(), port_i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment