Revision 5e173e9f nest/config.Y

View differences:

nest/config.Y
98 98
 | SYM {
99 99
     if ($1->class == (SYM_CONSTANT | T_INT) || $1->class == (SYM_CONSTANT | T_QUAD))
100 100
       $$ = SYM_VAL($1).i;
101
#ifndef IPV6
102
     else if ($1->class == (SYM_CONSTANT | T_IP))
103
       $$ = ipa_to_u32(SYM_VAL($1).px.ip);
104
#endif
101
     else if (($1->class == (SYM_CONSTANT | T_IP)) && ipa_is_ip4(SYM_VAL($1).ip))
102
       $$ = ipa_to_u32(SYM_VAL($1).ip);
105 103
     else
106 104
       cf_error("Number of IPv4 address constant expected");
107 105
   }

Also available in: Unified diff