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
fix fake shutdown of external nodes
[sliver-openvswitch.git]
/
lib
/
learn.c
diff --git
a/lib/learn.c
b/lib/learn.c
index
7504227
..
b9bbc97
100644
(file)
--- a/
lib/learn.c
+++ b/
lib/learn.c
@@
-346,7
+346,9
@@
learn_execute(const struct ofpact_learn *learn, const struct flow *flow,
load->dst.field = spec->dst.field;
load->dst.ofs = spec->dst.ofs + ofs;
load->dst.n_bits = chunk;
- load->subvalue = value;
+ bitwise_copy(&value, sizeof value, ofs,
+ &load->subvalue, sizeof load->subvalue, 0,
+ chunk);
}
break;