Revision d14f8c3c conf/confbase.Y

View differences:

conf/confbase.Y
270 270

  
271 271
label_stack_start: NUM
272 272
{
273
  $$ = cfg_allocz(sizeof(u32) * (NEXTHOP_MAX_LABEL_STACK+1));
273
  $$ = cfg_allocz(sizeof(u32) * (MPLS_MAX_LABEL_STACK+1));
274 274
  $$[0] = 1;
275 275
  $$[1] = $1;
276 276
};
......
278 278
label_stack:
279 279
    label_stack_start
280 280
  | label_stack '/' NUM {
281
    if ($1[0] >= NEXTHOP_MAX_LABEL_STACK)
281
    if ($1[0] >= MPLS_MAX_LABEL_STACK)
282 282
      cf_error("Too many labels in stack.");
283 283
    $1[++$1[0]] = $3;
284 284
    $$ = $1;

Also available in: Unified diff