git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
multipath: Zero padding bytes in fields before hashing.
[sliver-openvswitch.git]
/
lib
/
multipath.c
diff --git
a/lib/multipath.c
b/lib/multipath.c
index
7d4b541
..
13f88ff
100644
(file)
--- a/
lib/multipath.c
+++ b/
lib/multipath.c
@@
-99,6
+99,7
@@
hash_symmetric_l4(const struct flow *flow, uint16_t basis)
int i;
+ memset(&fields, 0, sizeof fields);
for (i = 0; i < ETH_ADDR_LEN; i++) {
fields.eth_addr[i] = flow->dl_src[i] ^ flow->dl_dst[i];
}