From 6a529155f1f826ace040dd85c8367132d45bde99 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Mar 2015 05:27:06 +0100 Subject: config: move packet mark support check to Bison file --- src/config.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.y') 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 { -- cgit v1.2.3