diff options
author | ajs <ajs> | 2006-11-28 16:36:39 +0000 |
---|---|---|
committer | ajs <ajs> | 2006-11-28 16:36:39 +0000 |
commit | 13ceca4ec5ea284aad854013c6f062e9ad044f28 (patch) | |
tree | 55564b7c1205956307cb62e3ecf26b92bb0843ba /ripd/rip_interface.c | |
parent | c8c69650fa29a32bc28debbef6b626c084f40772 (diff) | |
download | quagga-13ceca4ec5ea284aad854013c6f062e9ad044f28.tar.bz2 quagga-13ceca4ec5ea284aad854013c6f062e9ad044f28.tar.xz |
[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.
Diffstat (limited to 'ripd/rip_interface.c')
0 files changed, 0 insertions, 0 deletions