Revision 17661ff9

View differences:

nest/config.Y
94 94

  
95 95
idval:
96 96
   NUM { $$ = $1; }
97
 | '(' term ')' { $$ = f_eval_int($2); }
97 98
 | RTRID
98 99
 | IPA {
99 100
#ifndef IPV6
......
102 103
     cf_error("Router IDs must be entered as hexadecimal numbers or IPv4 addresses in IPv6 version");
103 104
#endif
104 105
   }
106
 | SYM {
107
     if ($1->class == (SYM_CONSTANT | T_INT) || $1->class == (SYM_CONSTANT | T_QUAD))
108
       $$ = SYM_VAL($1).i;
109
#ifndef IPV6
110
     else if ($1->class == (SYM_CONSTANT | T_IP))
111
       $$ = SYM_VAL($1).px.ip;
112
#endif
113
     else
114
       cf_error("Number of IPv4 address constant expected");
115
   }
105 116
 ;
106 117

  
107 118

  

Also available in: Unified diff