Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
106a215
)
arping: coverity woe on COPY_PASTE_ERROR
73/31873/2
author
Steven Luong
<sluong@cisco.com>
Fri, 2 Apr 2021 15:51:17 +0000
(08:51 -0700)
committer
Matthew Smith
<mgsmith@netgate.com>
Mon, 5 Apr 2021 14:33:30 +0000
(14:33 +0000)
coverity is trying to outsmart human by guessing on COPY_PASTE_ERROR.
Have it your way.
Type: fix
Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I0239c9745e21384aebbaf9e977962746b81ded58
src/plugins/arping/arping.c
patch
|
blob
|
history
diff --git
a/src/plugins/arping/arping.c
b/src/plugins/arping/arping.c
index
6c5836b
..
14f9258
100644
(file)
--- a/
src/plugins/arping/arping.c
+++ b/
src/plugins/arping/arping.c
@@
-178,7
+178,7
@@
VLIB_NODE_FN (arping_input_node)
aif1->recv.from4.ip4.as_u32 =
arp1->ip4_over_ethernet[0].ip4.as_u32;
clib_memcpy_fast (&aif1->recv.from4.mac,
- &arp
0
->ip4_over_ethernet[0].mac, 6);
+ &arp
1
->ip4_over_ethernet[0].mac, 6);
aif1->reply_count++;
}
}