From bc6650141cfa7970e4f6e5e94abe2618f84313da Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 22 Feb 2016 22:57:11 +0100 Subject: capabilities: guard packet mark check with USE_PACKET_MARK At the moment, both capabilities and packet marks are supported on Linux only, so this doesn't really matter except for testing. --- src/capabilities.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/capabilities.c b/src/capabilities.c index 3feed89..d0811cd 100644 --- a/src/capabilities.c +++ b/src/capabilities.c @@ -79,8 +79,10 @@ static bool need_cap_net_admin(void) { if (!fastd_config_persistent_ifaces() && conf.drop_caps != DROP_CAPS_FORCE) return true; +#ifdef USE_PACKET_MARK if (!(ctx.sock_default_v4 || ctx.sock_default_v6) && conf.packet_mark) return true; +#endif return false; } -- cgit v1.2.3