From aadf0a94b436990202cd2f13f1fe8528a9fd183c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 29 Mar 2012 01:28:55 +0200 Subject: Implement on-up commands; also fix log print conditions --- src/config.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.l') 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)) { -- cgit v1.2.3