Revision f623ab98 proto/ospf/ospf.c

View differences:

proto/ospf/ospf.c
167 167
#ifdef OSPFv2
168 168
  oa->options = ac->type;
169 169
#else /* OSPFv3 */
170
  oa->options = OPT_R | ac->type | OPT_V6;
170
  oa->options = ac->type | OPT_V6 | (po->stub_router ? 0 : OPT_R);
171 171
#endif
172 172

  
173 173
  /*
......
234 234
  po->router_id = proto_get_router_id(p->cf);
235 235
  po->last_vlink_id = 0x80000000;
236 236
  po->rfc1583 = c->rfc1583;
237
  po->stub_router = c->stub_router;
237 238
  po->ebit = 0;
238 239
  po->ecmp = c->ecmp;
239 240
  po->tick = c->tick;
......
690 691
#ifdef OSPFv2
691 692
  oa->options = nac->type;
692 693
#else /* OSPFv3 */
693
  oa->options = OPT_R | nac->type | OPT_V6;
694
  oa->options = nac->type | OPT_V6 | (oa->po->stub_router ? 0 : OPT_R);
694 695
#endif
695 696
  if (oa_is_nssa(oa) && (oa->po->areano > 1))
696 697
    oa->po->ebit = 1;
......
738 739
  if (old->abr != new->abr)
739 740
    return 0;
740 741

  
742
  po->stub_router = new->stub_router;
741 743
  po->ecmp = new->ecmp;
742 744
  po->tick = new->tick;
743 745
  po->disp_timer->recurrent = po->tick;
......
831 833

  
832 834
  cli_msg(-1014, "%s:", p->name);
833 835
  cli_msg(-1014, "RFC1583 compatibility: %s", (po->rfc1583 ? "enable" : "disabled"));
836
  cli_msg(-1014, "Stub router: %s", (po->stub_router ? "Yes" : "No"));
834 837
  cli_msg(-1014, "RT scheduler tick: %d", po->tick);
835 838
  cli_msg(-1014, "Number of areas: %u", po->areano);
836 839
  cli_msg(-1014, "Number of LSAs in DB:\t%u", po->gr->hash_entries);

Also available in: Unified diff