Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
2bb3ffe9
Commit
2bb3ffe9
authored
Oct 07, 2022
by
GAO Bin
Browse files
mem_switch: fix typo
parent
5f9bab83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sims/net/mem_switch/mem_switch.cc
sims/net/mem_switch/mem_switch.cc
+3
-3
No files found.
sims/net/mem_switch/mem_switch.cc
View file @
2bb3ffe9
...
...
@@ -572,14 +572,14 @@ int main(int argc, char *argv[]) {
uint8_t
*
temp
=
(
uint8_t
*
)
malloc
(
6
);
memcpy
(
temp
,
(
const
uint8_t
*
)
ent
.
node_mac
.
ether_addr_octet
,
6
);
MAC
node_mac
((
const
uint8_t
*
)
temp
);
bool
exis
i
ting
=
false
;
bool
existing
=
false
;
for
(
auto
iter
=
mac_table
.
begin
();
iter
!=
mac_table
.
end
();
++
iter
)
{
if
(
iter
->
first
==
node_mac
){
exis
i
ting
=
true
;
existing
=
true
;
break
;
}
}
if
(
exis
i
ting
){
if
(
existing
){
break
;
}
else
{
printf
(
"port id for %s is %lu
\n
"
,
netmem_name
.
c_str
(),
port_i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment