summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 05:27:06 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 05:27:06 +0100
commit6a529155f1f826ace040dd85c8367132d45bde99 (patch)
tree8bc1c97aee5b731bd6222b8f283c6a3e9eccb7a5 /src/config.y
parentb2e576bb172fcce419e639216393126c94fc99fa (diff)
downloadfastd-6a529155f1f826ace040dd85c8367132d45bde99.tar
fastd-6a529155f1f826ace040dd85c8367132d45bde99.zip
config: move packet mark support check to Bison file
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index fb2ceee..a11460f 100644
--- a/src/config.y
+++ b/src/config.y
@@ -362,7 +362,12 @@ bind_default:
;
packet_mark: TOK_UINT {
+#ifdef USE_PACKET_MARK
conf.packet_mark = $1;
+#else
+ fastd_config_error(&@$, state, "setting a packet mark is not supported on this system");
+ YYERROR;
+#endif
}
mtu: TOK_UINT {