diff options
author | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:33:05 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:37 +0200 |
commit | 57721604f26eefbe3dfb628affec8ca167a9f4b8 (patch) | |
tree | f249d1e41229aa0ca6426ebc559044f52ae74487 /cfparse.y | |
parent | fbf66aa98a358cd35f58844e59e420534f36cac4 (diff) |
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.y | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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: |