aboutsummaryrefslogtreecommitdiff
path: root/cfparse.y
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2010-08-06 15:33:05 +0200
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:37 +0200
commit57721604f26eefbe3dfb628affec8ca167a9f4b8 (patch)
treef249d1e41229aa0ca6426ebc559044f52ae74487 /cfparse.y
parentfbf66aa98a358cd35f58844e59e420534f36cac4 (diff)
Adding ifid option to the dhcp6c.conf prefix-interface statementHEADmaster
This adds the ability to override the default EUI-64 address selection. Useful for interfaces without a unique hardware address, or for creating more userfriendly addresses in general. Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'cfparse.y')
-rw-r--r--cfparse.y10
1 files changed, 9 insertions, 1 deletions
diff --git a/cfparse.y b/cfparse.y
index c79d131..e83ecf7 100644
--- a/cfparse.y
+++ b/cfparse.y
@@ -104,7 +104,7 @@ static void cleanup_cflist __P((struct cf_list *));
%token INTERFACE IFNAME
%token PROFILE PROFILENAME
-%token PREFIX_INTERFACE SLA_ID SLA_LEN DUID_ID
+%token PREFIX_INTERFACE SLA_ID SLA_LEN IFID DUID_ID
%token ID_ASSOC IA_PD IAID IA_NA
%token ADDRESS
%token REQUEST SEND ALLOW PREFERENCE
@@ -1056,6 +1056,14 @@ ifparam:
l->num = $2;
$$ = l;
}
+ | IFID NUMBER EOS
+ {
+ struct cf_list *l;
+
+ MAKE_CFLIST(l, IFPARAM_IFID, NULL, NULL);
+ l->num = (u_int64_t)$2;
+ $$ = l;
+ }
;
ianaconf_list: