aboutsummaryrefslogtreecommitdiff
path: root/cftoken.l
diff options
context:
space:
mode:
Diffstat (limited to 'cftoken.l')
-rw-r--r--cftoken.l10
1 files changed, 10 insertions, 0 deletions
diff --git a/cftoken.l b/cftoken.l
index ad4128d..4c9ed10 100644
--- a/cftoken.l
+++ b/cftoken.l
@@ -111,6 +111,7 @@ ecl \}
%s S_CNF
%s S_IFACE
+%s S_PROFILE
%s S_PREF
%s S_HOST
%s S_DUID
@@ -137,6 +138,15 @@ ecl \}
return (IFNAME);
}
+ /* profile configuration */
+<S_CNF>profile { DECHO; BEGIN S_PROFILE; return (PROFILE); }
+<S_PROFILE>{string} {
+ DECHO;
+ yylval.str = strdup(yytext);
+ BEGIN S_CNF;
+ return (PROFILENAME);
+}
+
/* host configuration */
<S_CNF>host { DECHO; BEGIN S_HOST; return (HOST); }
<S_HOST>{string} {