mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
node: allign getNetemFDs() to getPollFDs()
This commit is contained in:
parent
6d299d33ed
commit
066febf06f
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ int Node::start()
|
|||
#ifdef __linux__
|
||||
/* Set fwmark for outgoing packets if netem is enabled for this node */
|
||||
if (fwmark >= 0) {
|
||||
for (auto fd : getNetemFDs()) {
|
||||
for (int fd : getNetemFDs()) {
|
||||
ret = setsockopt(fd, SOL_SOCKET, SO_MARK, &fwmark, sizeof(fwmark));
|
||||
if (ret)
|
||||
throw RuntimeError("Failed to set FW mark for outgoing packets");
|
||||
|
|
Loading…
Add table
Reference in a new issue