mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: reset of traffic controller in case it wasn't initialized before
This commit is contained in:
parent
02aa3ecdf2
commit
3cb842b28a
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ int tc_parse(config_setting_t *cfg, struct netem *em)
|
|||
int tc_reset(struct interface *i)
|
||||
{
|
||||
char cmd[128];
|
||||
snprintf(cmd, sizeof(cmd), "tc qdisc del dev %s root", i->name);
|
||||
snprintf(cmd, sizeof(cmd), "tc qdisc replace dev %s root pfifo_fast", i->name);
|
||||
|
||||
debug(6, "Reset traffic control for interface '%s'", i->name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue