1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

netem: added support for delay correlation

This commit is contained in:
Steffen Vogel 2017-12-20 14:48:44 +01:00
parent 125054b16b
commit 3a14eacb3d

View file

@ -73,6 +73,17 @@ int tc_netem_parse(struct rtnl_qdisc **netem, json_t *cfg)
error("Invalid delay distribution in netem config");
}
if (json_delay_correlation) {
val = json_integer_value(json_delay_correlation);
if (!json_is_real(json_delay_correlation))
error("Setting 'correlation' must be a positive integer within the range [ 0, 100 ]");
rtnl_netem_set_delay_correlation(ne, val);
}
else
rtnl_netem_set_delay_correlation(ne, 0);
if (json_limit) {
val = json_integer_value(json_limit);