]> git.puffer.fish Git - mirror/frr.git/commit
[ospfd] Fix bug in passive-interface default commands.
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 28 Nov 2006 16:36:39 +0000 (16:36 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 28 Nov 2006 16:36:39 +0000 (16:36 +0000)
commit435408866187f3bc3c49b26f11bc83c374e55dd5
treea23e2ab3c46a62cc156ec2c00a120b86480bf44d
parent56395af70588c8fda89bf5ef327df64b5efbeb67
[ospfd] Fix bug in passive-interface default commands.

2006-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_vty.c: (ospf_passive_interface_default) Take additional
  'newval' arg so we can update ospf->passive_interface_default inside
  this function.  More importantly, we now call ospf_if_set_multicast
  on all ospf_interfaces.
  (ospf_passive_interface, no_ospf_passive_interface) Fix bug:
  for 'default' case, argv[0] is undefined, so we must test for
  (argc == 0) before using argv[0].  And since
  ospf_passive_interface_default now calls ospf_if_set_multicast as
  needed, we can just return after calling
  ospf_passive_interface_default.
ospfd/ChangeLog
ospfd/ospf_vty.c