diff --git a/lib/node.cpp b/lib/node.cpp index 111200722..f081cf49c 100644 --- a/lib/node.cpp +++ b/lib/node.cpp @@ -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");