aboutsummaryrefslogtreecommitdiff
path: root/cftoken.l
diff options
context:
space:
mode:
authorJeremie Corbier <jeremie.corbier@resel.enst-bretagne.fr>2008-12-29 08:50:16 +0100
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:37 +0200
commitfbf66aa98a358cd35f58844e59e420534f36cac4 (patch)
tree870802d187f57b7310d4baa48b50c382d9f3f62f /cftoken.l
parent35a72f9708bccef6092e37cdb2e31faf7ec04803 (diff)
200_dhcp6c-profiles.diff from the Debian package version 20080615-8:
"This patch enables users to define interface profiles so one can configure a group of interfaces the same way without having to provide an interface statement for each."
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} {