summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-29 01:28:55 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-29 01:28:55 +0200
commitaadf0a94b436990202cd2f13f1fe8528a9fd183c (patch)
tree87f5dd658b0503a4c33489e051b6a1b9dd0d85c1 /src/config.l
parent63e123738a9636618421d35ff97a278c06b69703 (diff)
downloadfastd-aadf0a94b436990202cd2f13f1fe8528a9fd183c.tar
fastd-aadf0a94b436990202cd2f13f1fe8528a9fd183c.zip
Implement on-up commands; also fix log print conditions
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l
index 808f96e..eeb20ae 100644
--- a/src/config.l
+++ b/src/config.l
@@ -55,6 +55,8 @@ as { return TOK_AS; }
any { return TOK_ANY; }
tap { return TOK_TAP; }
tun { return TOK_TUN; }
+on { return TOK_ON; }
+up { return TOK_UP; }
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} {
if (!inet_pton(AF_INET, yytext, &yylval->addr)) {