summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-01-26 03:37:36 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-01-26 03:37:36 +0100
commit53d331406d6b1cbe934528f87023b87887993e0e (patch)
tree7d8406c0bfc3ec9521c49d60ad977765280d8ceb /src/config.c
parentcc498848b36b347aa9b710ab55c1fcc8643a4633 (diff)
downloadfastd-53d331406d6b1cbe934528f87023b87887993e0e.tar
fastd-53d331406d6b1cbe934528f87023b87887993e0e.zip
Add support for setting packet marks
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 9e04299..66b69c7 100644
--- a/src/config.c
+++ b/src/config.c
@@ -554,6 +554,11 @@ void fastd_config_check(fastd_context_t *ctx, fastd_config_t *conf) {
exit_error(ctx, "config error: setting pmtu is not supported on this system");
#endif
+#ifndef USE_PACKET_MARK
+ if (conf->packet_mark)
+ exit_error(ctx, "config error: setting a packet mark is not supported on this system");
+#endif
+
if (!conf->method_list) {
pr_warn(ctx, "no encryption method configured, falling back to method `null' (unencrypted)");
fastd_config_method(ctx, conf, "null");