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:
parent
7e997bc063
commit
50e25ac464
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue