From 066febf06ffe855fa67224ea15699435b1791f52 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 25 Feb 2022 09:51:38 -0500 Subject: [PATCH] node: allign getNetemFDs() to getPollFDs() --- lib/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");