Count TCA_NETEM_CORR as present for a duplicate correlation, as the other arms do. Without it a duplicate correlation on its own is not sent: # tc qdisc add dev lo root netem duplicate 10% 25% # tc qdisc show dev lo shows "duplicate 10%", not "duplicate 10% 25%". Fixes: 40076f622e0a ("netem parameters to change command") Signed-off-by: Dave Seddon <dave…@gmail.com> --- tc/q_netem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tc/q_netem.c b/tc/q_netem.c index 0e47765b..f03d0d70 100644 --- a/tc/q_netem.c +++ b/tc/q_netem.c @@ -407,6 +407,7 @@ random_loss_model: } if (NEXT_IS_NUMBER()) { NEXT_ARG(); + ++present[TCA_NETEM_CORR]; if (get_percent(&cor.dup_corr, *argv)) { explain1("duplicate"); return -1;
-- 2.56.0