]> www.tinc-vpn.org Git - tinc/blobdiff - src/net_setup.c
Add the ability to set a firewall mark on sockets.
[tinc] / src / net_setup.c
index 17675aec40ace0b3f8d775875c54321961206e55..455f66c68d78ee55ddded5e5d9f1b59b3a9aedba 100644 (file)
@@ -949,6 +949,16 @@ static bool setup_myself(void) {
                }
        }
 
+       get_config_int(lookup_config(config_tree, "FWMark"), &fwmark);
+#ifndef SO_MARK
+
+       if(fwmark) {
+               logger(DEBUG_ALWAYS, LOG_ERR, "FWMark not supported on this platform!");
+               return false;
+       }
+
+#endif
+
        int replaywin_int;
 
        if(get_config_int(lookup_config(config_tree, "ReplayWindow"), &replaywin_int)) {