1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

if: fix invalid check for fwmark (closes #234)

This commit is contained in:
Steffen Vogel 2019-03-15 17:18:35 +01:00
parent b7d0f174ca
commit 7c7c4a00e3

View file

@ -241,7 +241,7 @@ int node_start(struct node *n)
#ifdef __linux__
/* Set fwmark for outgoing packets if netem is enabled for this node */
if (n->fwmark) {
if (n->fwmark >= 0) {
int fds[16];
int num_sds = node_netem_fds(n, fds);