1
0
Fork 0
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:
Steffen Vogel 2022-02-25 09:51:38 -05:00
parent 6d299d33ed
commit 066febf06f

View file

@ -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");