mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00
netem: make mark configurable
This commit is contained in:
parent
4660f97834
commit
e79f7376a7
1 changed files with 3 additions and 2 deletions
|
@ -282,12 +282,13 @@ int node_parse(struct node *n, json_t *json, const char *name)
|
||||||
|
|
||||||
n->name = strdup(name);
|
n->name = strdup(name);
|
||||||
|
|
||||||
ret = json_unpack_ex(json, &err, 0, "{ s: s, s?: { s?: o }, s?: { s?: o } }",
|
ret = json_unpack_ex(json, &err, 0, "{ s: s, s?: { s?: o }, s?: { s?: o, s: i } }",
|
||||||
"type", &type,
|
"type", &type,
|
||||||
"in",
|
"in",
|
||||||
"signals", &json_signals,
|
"signals", &json_signals,
|
||||||
"out",
|
"out",
|
||||||
"netem", &json_netem
|
"netem", &json_netem,
|
||||||
|
"fwmark", &n->fwmark
|
||||||
);
|
);
|
||||||
if (ret)
|
if (ret)
|
||||||
jerror(&err, "Failed to parse node %s", node_name(n));
|
jerror(&err, "Failed to parse node %s", node_name(n));
|
||||||
|
|
Loading…
Add table
Reference in a new issue