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

bugfix for parsing netem configuration

This commit is contained in:
Steffen Vogel 2017-10-15 22:03:26 +02:00
parent 7e997bc063
commit 50e25ac464

View file

@ -50,7 +50,6 @@ int tc_parse(struct rtnl_qdisc **netem, json_t *cfg)
json_error_t err;
ret = json_unpack_ex(cfg, &err, 0, "{ s?: s, s?: i, s?: i, s?: i, s?: i, s?: i, s?: i }",
"distribution", &cfg_distribution,
"limit", &cfg_limit,
"delay", &cfg_delay,
@ -58,6 +57,7 @@ int tc_parse(struct rtnl_qdisc **netem, json_t *cfg)
"loss", &cfg_loss,
"duplicate", &cfg_duplicate,
"corruption", &cfg_corruption
ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: o, s?: o, s?: o, s?: o, s?: o }",
);
if (ret)
jerror(&err, "Failed to parse setting network emulation settings");