X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flearn.c;h=b9bbc973e6bddb1e8fdde00a9eaed097999ac6e0;hb=849eddd79d4e0cc56947ce3066dafe6eb270ae35;hp=7504227cecd330c7b708b84a6defce53e169f565;hpb=9bab681f33e09882e8f652c8e96a2b998b3ef9b3;p=sliver-openvswitch.git diff --git a/lib/learn.c b/lib/learn.c index 7504227ce..b9bbc973e 100644 --- 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;