• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/quagga/ospfd/

Lines Matching refs:ospf

148        "router ospf",
160 "no router ospf",
165 struct ospf *ospf;
167 ospf = ospf_lookup ();
168 if (ospf == NULL)
170 vty_out (vty, "There isn't active ospf instance%s", VTY_NEWLINE);
174 ospf_finish (ospf);
181 "ospf router-id A.B.C.D",
186 struct ospf *ospf = vty->index;
197 ospf->router_id_static = router_id;
199 ospf_router_id_update (ospf);
212 "no ospf router-id",
217 struct ospf *ospf = vty->index;
219 ospf->router_id_static.s_addr = 0;
221 ospf_router_id_update (ospf);
233 ospf_passive_interface_default (struct ospf *ospf, u_char newval)
239 ospf->passive_interface_default = newval;
247 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, ln, oi))
257 ospf_passive_interface_update (struct ospf *ospf, struct interface *ifp,
269 dflt = ospf->passive_interface_default;
281 if (value != ospf->passive_interface_default)
299 struct ospf *ospf = vty->index;
303 ospf_passive_interface_default (ospf, OSPF_IF_PASSIVE);
324 ospf_passive_interface_update (ospf, ifp, addr, params, OSPF_IF_PASSIVE);
375 struct ospf *ospf = vty->index;
379 ospf_passive_interface_default (ospf, OSPF_IF_ACTIVE);
401 ospf_passive_interface_update (ospf, ifp, addr, params, OSPF_IF_ACTIVE);
444 struct ospf *ospf= vty->index;
453 ret = ospf_network_set (ospf, &p, area_id);
473 struct ospf *ospf = (struct ospf *) vty->index;
482 ret = ospf_network_unset (ospf, &p, area_id);
503 struct ospf *ospf = vty->index;
512 ospf_area_range_set (ospf, area_id, &p, OSPF_AREA_RANGE_ADVERTISE);
516 ospf_area_range_cost_set (ospf, area_id, &p, cost);
565 struct ospf *ospf = vty->index;
573 ospf_area_range_set (ospf, area_id, &p, 0);
588 struct ospf *ospf = vty->index;
596 ospf_area_range_unset (ospf, area_id, &p);
649 struct ospf *ospf = vty->index;
658 ospf_area_range_substitute_set (ospf, area_id, &p, &s);
675 struct ospf *ospf = vty->index;
684 ospf_area_range_substitute_unset (ospf, area_id, &p);
733 ospf_find_vl_data (struct ospf *ospf, struct ospf_vl_config_data *vl_config)
750 area = ospf_area_get (ospf, area_id, vl_config->format);
767 if ((vl_data = ospf_vl_lookup (ospf, area, vl_config->vl_peer)) == NULL)
772 vl_data->vl_oi = ospf_vl_new (ospf, vl_data);
773 ospf_vl_add (ospf, vl_data);
774 ospf_spf_calculate_schedule (ospf, SPF_FLAG_CONFIG_CHANGE);
876 ospf_vl_set (struct ospf *ospf, struct ospf_vl_config_data *vl_config)
881 vl_data = ospf_find_vl_data (ospf, vl_config);
948 struct ospf *ospf = vty->index;
977 return ospf_vl_set (ospf, &vl_config);
1073 return ospf_vl_set (ospf, &vl_config);
1083 struct ospf *ospf = vty->index;
1100 area = ospf_area_lookup_by_area_id (ospf, vl_config.area_id);
1119 if ((vl_data = ospf_vl_lookup (ospf, area, vl_config.vl_peer)))
1120 ospf_vl_delete (ospf, vl_data);
1122 ospf_area_check_free (ospf, vl_config.area_id);
1190 return ospf_vl_set (ospf, &vl_config);
1397 struct ospf *ospf = vty->index;
1405 area = ospf_area_get (ospf, area_id, format);
1416 ospf_area_shortcut_set (ospf, area, mode);
1418 if (ospf->abr_type != OSPF_ABR_SHORTCUT)
1437 struct ospf *ospf = vty->index;
1444 area = ospf_area_lookup_by_area_id (ospf, area_id);
1448 ospf_area_shortcut_unset (ospf, area);
1462 struct ospf *ospf = vty->index;
1468 ret = ospf_area_stub_set (ospf, area_id);
1476 ospf_area_no_summary_unset (ospf, area_id);
1490 struct ospf *ospf = vty->index;
1496 ret = ospf_area_stub_set (ospf, area_id);
1504 ospf_area_no_summary_set (ospf, area_id);
1518 struct ospf *ospf = vty->index;
1524 ospf_area_stub_unset (ospf, area_id);
1525 ospf_area_no_summary_unset (ospf, area_id);
1540 struct ospf *ospf = vty->index;
1545 ospf_area_no_summary_unset (ospf, area_id);
1554 struct ospf *ospf = vty->index;
1560 ret = ospf_area_nssa_set (ospf, area_id);
1571 ospf_area_nssa_translator_role_set (ospf, area_id,
1574 ospf_area_nssa_translator_role_set (ospf, area_id,
1577 ospf_area_nssa_translator_role_set (ospf, area_id,
1582 ospf_area_nssa_translator_role_set (ospf, area_id,
1587 ospf_area_no_summary_set (ospf, area_id);
1589 ospf_area_no_summary_unset (ospf, area_id);
1591 ospf_schedule_abr_task (ospf);
1657 struct ospf *ospf = vty->index;
1663 ospf_area_nssa_unset (ospf, area_id);
1664 ospf_area_no_summary_unset (ospf, area_id);
1666 ospf_schedule_abr_task (ospf);
1681 struct ospf *ospf = vty->index;
1686 ospf_area_no_summary_unset (ospf, area_id);
1700 struct ospf *ospf = vty->index;
1710 area = ospf_area_get (ospf, area_id, format);
1742 struct ospf *ospf = vty->index;
1751 area = ospf_area_lookup_by_area_id (ospf, area_id);
1773 ospf_area_check_free (ospf, area_id);
1787 struct ospf *ospf = vty->index;
1794 area = ospf_area_get (ospf, area_id, format);
1795 ospf_area_export_list_set (ospf, area, argv[1]);
1810 struct ospf *ospf = vty->index;
1817 area = ospf_area_lookup_by_area_id (ospf, area_id);
1821 ospf_area_export_list_unset (ospf, area);
1836 struct ospf *ospf = vty->index;
1843 area = ospf_area_get (ospf, area_id, format);
1844 ospf_area_import_list_set (ospf, area, argv[1]);
1859 struct ospf *ospf = vty->index;
1866 area = ospf_area_lookup_by_area_id (ospf, area_id);
1870 ospf_area_import_list_unset (ospf, area);
1887 struct ospf *ospf = vty->index;
1895 area = ospf_area_get (ospf, area_id, format);
1904 ospf_schedule_abr_task (ospf);
1913 ospf_schedule_abr_task (ospf);
1932 struct ospf *ospf = vty->index;
1939 if ((area = ospf_area_lookup_by_area_id (ospf, area_id)) == NULL)
1954 ospf_schedule_abr_task (ospf);
1968 ospf_schedule_abr_task (ospf);
1984 struct ospf *ospf = vty->index;
1991 area = ospf_area_get (ospf, area_id, format);
2005 struct ospf *ospf = vty->index;
2012 area = ospf_area_get (ospf, area_id, format);
2027 struct ospf *ospf = vty->index;
2034 area = ospf_area_lookup_by_area_id (ospf, area_id);
2040 ospf_area_check_free (ospf, area_id);
2048 "ospf abr-type (cisco|ibm|shortcut|standard)",
2056 struct ospf *ospf = vty->index;
2071 if (ospf->abr_type != abr_type)
2073 ospf->abr_type = abr_type;
2074 ospf_schedule_abr_task (ospf);
2082 "no ospf abr-type (cisco|ibm|shortcut|standard)",
2090 struct ospf *ospf = vty->index;
2105 if (ospf->abr_type == abr_type)
2107 ospf->abr_type = OSPF_ABR_DEFAULT;
2108 ospf_schedule_abr_task (ospf);
2119 struct ospf *ospf = vty->index;
2121 SET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_CHANGES);
2131 struct ospf *ospf = vty->index;
2133 SET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_CHANGES);
2134 SET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_DETAIL);
2144 struct ospf *ospf = vty->index;
2146 UNSET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_DETAIL);
2147 UNSET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_CHANGES);
2158 struct ospf *ospf = vty->index;
2160 UNSET_FLAG(ospf->config, OSPF_LOG_ADJACENCY_DETAIL);
2170 struct ospf *ospf = vty->index;
2172 if (!CHECK_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE))
2174 SET_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE);
2175 ospf_spf_calculate_schedule (ospf, SPF_FLAG_CONFIG_CHANGE);
2187 struct ospf *ospf = vty->index;
2189 if (CHECK_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE))
2191 UNSET_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE);
2192 ospf_spf_calculate_schedule (ospf, SPF_FLAG_CONFIG_CHANGE);
2199 "ospf rfc1583compatibility",
2205 "no ospf rfc1583compatibility",
2215 struct ospf *ospf = vty->index;
2217 ospf->spf_delay = delay;
2218 ospf->spf_holdtime = hold;
2219 ospf->spf_max_holdtime = max;
2307 struct ospf *ospf = vty->index;
2320 ospf_nbr_nbma_set (ospf, nbr_addr);
2322 ospf_nbr_nbma_priority_set (ospf, nbr_addr, priority);
2324 ospf_nbr_nbma_poll_interval_set (ospf, nbr_addr, interval);
2355 struct ospf *ospf = vty->index;
2368 ospf_nbr_nbma_set (ospf, nbr_addr);
2370 ospf_nbr_nbma_poll_interval_set (ospf, nbr_addr, interval);
2372 ospf_nbr_nbma_priority_set (ospf, nbr_addr, priority);
2394 struct ospf *ospf = vty->index;
2399 (void)ospf_nbr_nbma_unset (ospf, nbr_addr);
2440 struct ospf *ospf = vty->index;
2446 ospf_timers_refresh_set (ospf, interval);
2457 struct ospf *ospf = vty->index;
2464 if (ospf->lsa_refresh_interval != interval ||
2469 ospf_timers_refresh_unset (ospf);
2487 struct ospf *ospf = vty->index;
2500 if ((refbw * 1000) == ospf->ref_bandwidth)
2503 ospf->ref_bandwidth = refbw * 1000;
2517 struct ospf *ospf = vty->index;
2521 if (ospf->ref_bandwidth == OSPF_DEFAULT_REF_BANDWIDTH)
2524 ospf->ref_bandwidth = OSPF_DEFAULT_REF_BANDWIDTH;
2588 if (! IS_OSPF_ABR (area->ospf))
2678 "show ip ospf",
2685 struct ospf *ospf;
2690 ospf = ospf_lookup ();
2691 if (ospf == NULL)
2699 inet_ntoa (ospf->router_id),
2703 if (ospf->t_deferred_shutdown)
2705 ospf_timer_dump (ospf->t_deferred_shutdown,
2711 CHECK_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE) ?
2715 CHECK_FLAG (ospf->config, OSPF_OPAQUE_CAPABLE) ?
2717 IS_OPAQUE_LSA_ORIGINATION_BLOCKED (ospf->opaque) ?
2723 if (ospf->stub_router_startup_time != OSPF_STUB_ROUTER_UNCONFIGURED
2724 || ospf->stub_router_shutdown_time != OSPF_STUB_ROUTER_UNCONFIGURED)
2728 if (ospf->stub_router_startup_time != OSPF_STUB_ROUTER_UNCONFIGURED)
2730 ospf->stub_router_startup_time, VTY_NEWLINE);
2731 if (ospf->stub_router_shutdown_time != OSPF_STUB_ROUTER_UNCONFIGURED)
2733 ospf->stub_router_shutdown_time, VTY_NEWLINE);
2741 ospf->spf_delay, VTY_NEWLINE,
2742 ospf->spf_holdtime, VTY_NEWLINE,
2743 ospf->spf_max_holdtime, VTY_NEWLINE,
2744 ospf->spf_hold_multiplier, VTY_NEWLINE);
2746 if (ospf->ts_spf.tv_sec || ospf->ts_spf.tv_usec)
2748 result = tv_sub (recent_relative_time (), ospf->ts_spf);
2753 ospf_timeval_dump (&ospf->ts_spf_duration, timebuf, sizeof (timebuf)),
2759 (ospf->t_spf_calc ? "due in " : "is "),
2760 ospf_timer_dump (ospf->t_spf_calc, timebuf, sizeof (timebuf)),
2765 ospf->lsa_refresh_interval, VTY_NEWLINE);
2768 if (CHECK_FLAG (ospf->flags, OSPF_FLAG_ABR))
2770 ospf_abr_type_descr_str[ospf->abr_type], VTY_NEWLINE);
2772 if (CHECK_FLAG (ospf->flags, OSPF_FLAG_ASBR))
2778 ospf_lsdb_count (ospf->lsdb, OSPF_AS_EXTERNAL_LSA),
2779 ospf_lsdb_checksum (ospf->lsdb, OSPF_AS_EXTERNAL_LSA), VTY_NEWLINE);
2782 ospf_lsdb_count (ospf->lsdb, OSPF_OPAQUE_AS_LSA),
2783 ospf_lsdb_checksum (ospf->lsdb, OSPF_OPAQUE_AS_LSA), VTY_NEWLINE);
2787 listcount (ospf->areas), VTY_NEWLINE);
2789 if (CHECK_FLAG(ospf->config, OSPF_LOG_ADJACENCY_CHANGES))
2791 if (CHECK_FLAG(ospf->config, OSPF_LOG_ADJACENCY_DETAIL))
2800 for (ALL_LIST_ELEMENTS (ospf->areas, node, nnode, area))
2808 show_ip_ospf_interface_sub (struct vty *vty, struct ospf *ospf,
2875 inet_ntoa (ospf->router_id), ospf_network_type_str[oi->type],
2967 "show ip ospf interface [INTERFACE]",
2975 struct ospf *ospf;
2978 ospf = ospf_lookup ();
2979 if (ospf == NULL)
2988 show_ip_ospf_interface_sub (vty, ospf, ifp);
2995 show_ip_ospf_interface_sub (vty, ospf, ifp);
3051 "show ip ospf neighbor",
3057 struct ospf *ospf;
3061 ospf = ospf_lookup ();
3062 if (ospf == NULL)
3070 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
3078 "show ip ospf neighbor all",
3085 struct ospf *ospf = ospf_lookup ();
3089 if (ospf == NULL)
3097 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
3124 "show ip ospf neighbor IFNAME",
3131 struct ospf *ospf;
3142 ospf = ospf_lookup ();
3143 if (ospf == NULL)
3276 "show ip ospf neighbor A.B.C.D",
3283 struct ospf *ospf;
3297 ospf = ospf_lookup ();
3298 if (ospf == NULL)
3304 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
3313 "show ip ospf neighbor detail",
3320 struct ospf *ospf;
3324 ospf = ospf_lookup ();
3325 if (ospf == NULL)
3331 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
3348 "show ip ospf neighbor detail all",
3356 struct ospf *ospf;
3360 ospf = ospf_lookup ();
3361 if (ospf == NULL)
3367 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
3395 "show ip ospf neighbor IFNAME detail",
3403 struct ospf *ospf;
3416 ospf = ospf_lookup ();
3417 if (ospf == NULL)
3885 show_lsa_detail (struct vty *vty, struct ospf *ospf, int type,
3900 show_lsa_detail_proc (vty, AS_LSDB (ospf, type), id, adv_router);
3903 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
3934 show_lsa_detail_adv_router (struct vty *vty, struct ospf *ospf, int type,
3949 show_lsa_detail_adv_router_proc (vty, AS_LSDB (ospf, type),
3953 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
3966 show_ip_ospf_database_summary (struct vty *vty, struct ospf *ospf, int self)
3974 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
4017 if (ospf_lsdb_count_self (ospf->lsdb, type) ||
4018 (!self && ospf_lsdb_count (ospf->lsdb, type)))
4026 LSDB_LOOP (AS_LSDB (ospf, type), rn, lsa)
4037 show_ip_ospf_database_maxage (struct vty *vty, struct ospf *ospf)
4044 for (rn = route_top (ospf->maxage_lsa); rn; rn = route_next (rn))
4094 "show ip ospf database",
4100 struct ospf *ospf;
4104 ospf = ospf_lookup ();
4105 if (ospf == NULL)
4112 inet_ntoa (ospf->router_id), VTY_NEWLINE, VTY_NEWLINE);
4117 show_ip_ospf_database_summary (vty, ospf, 0);
4136 show_ip_ospf_database_summary (vty, ospf, 1);
4141 show_ip_ospf_database_maxage (vty, ospf);
4155 /* `show ip ospf database LSA'. */
4157 show_lsa_detail (vty, ospf, type, NULL, NULL);
4164 /* `show ip ospf database LSA ID'. */
4166 show_lsa_detail (vty, ospf, type, &id, NULL);
4167 /* `show ip ospf database LSA ID adv-router ADV_ROUTER'. */
4171 adv_router = ospf->router_id;
4178 show_lsa_detail (vty, ospf, type, &id, &adv_router);
4187 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR "|max-age|self-originate)",
4198 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR ") A.B.C.D",
4208 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR ") A.B.C.D adv-router A.B.C.D",
4220 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR ") A.B.C.D (self-originate|)",
4232 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR ") adv-router A.B.C.D",
4241 struct ospf *ospf;
4245 ospf = ospf_lookup ();
4246 if (ospf == NULL)
4253 inet_ntoa (ospf->router_id), VTY_NEWLINE, VTY_NEWLINE);
4282 /* `show ip ospf database LSA adv-router ADV_ROUTER'. */
4284 adv_router = ospf->router_id;
4292 show_lsa_detail_adv_router (vty, ospf, type, &adv_router);
4299 "show ip ospf database (" OSPF_LSA_TYPES_CMD_STR ") (self-originate|)",
4310 "ip ospf authentication (null|message-digest) A.B.C.D",
4362 "ip ospf authentication (null|message-digest)",
4371 "ip ospf authentication A.B.C.D",
4407 "ip ospf authentication",
4414 "no ip ospf authentication A.B.C.D",
4458 "no ip ospf authentication",
4466 "ip ospf authentication-key AUTH_KEY A.B.C.D",
4505 "ip ospf authentication-key AUTH_KEY",
4513 "ospf authentication-key AUTH_KEY",
4520 "no ip ospf authentication-key A.B.C.D",
4564 "no ip ospf authentication-key",
4572 "no ospf authentication-key",
4579 "ip ospf message-digest-key <1-255> md5 KEY A.B.C.D",
4632 "ip ospf message-digest-key <1-255> md5 KEY",
4642 "ospf message-digest-key <1-255> md5 KEY",
4651 "no ip ospf message-digest-key <1-255> A.B.C.D",
4705 "no ip ospf message-digest-key <1-255>",
4714 "no ospf message-digest-key <1-255>",
4722 "ip ospf cost <1-65535> A.B.C.D",
4770 "ip ospf cost <1-65535>",
4778 "ospf cost <1-65535>",
4785 "ospf cost <1-65535> A.B.C.D",
4793 "no ip ospf cost A.B.C.D",
4838 "no ip ospf cost",
4846 "no ospf cost",
4853 "no ospf cost A.B.C.D",
4861 "no ip ospf cost <1-65535>",
4877 /* According to the semantics we are mimicking "no ip ospf cost N" is
4878 * always treated as "no ip ospf cost" regardless of the actual value
4919 "no ospf cost <1-65535>",
4927 "no ip ospf cost <1-65535> A.B.C.D",
4937 "no ospf cost <1-65535> A.B.C.D",
5021 struct ospf *ospf;
5022 if ((ospf = ospf_lookup()))
5024 oi = ospf_if_lookup_by_local_addr (ospf, ifp, addr);
5042 "ip ospf dead-interval <1-65535> A.B.C.D",
5057 "ip ospf dead-interval <1-65535>",
5065 "ospf dead-interval <1-65535>",
5072 "ip ospf dead-interval minimal hello-multiplier <1-10> A.B.C.D",
5089 "ip ospf dead-interval minimal hello-multiplier <1-10>",
5099 "no ip ospf dead-interval A.B.C.D",
5146 struct ospf *ospf;
5148 if ((ospf = ospf_lookup()))
5150 oi = ospf_if_lookup_by_local_addr (ospf, ifp, addr);
5167 "no ip ospf dead-interval",
5175 "no ospf dead-interval",
5182 "ip ospf hello-interval <1-65535> A.B.C.D",
5228 "ip ospf hello-interval <1-65535>",
5236 "ospf hello-interval <1-65535>",
5243 "no ip ospf hello-interval A.B.C.D",
5287 "no ip ospf hello-interval",
5295 "no ospf hello-interval",
5302 "ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)",
5356 "ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)",
5366 "no ip ospf network",
5402 "no ospf network",
5409 "ip ospf priority <0-255> A.B.C.D",
5471 "ip ospf priority <0-255>",
5479 "ospf priority <0-255>",
5486 "no ip ospf priority A.B.C.D",
5546 "no ip ospf priority",
5554 "no ospf priority",
5561 "ip ospf retransmit-interval <3-65535> A.B.C.D",
5607 "ip ospf retransmit-interval <3-65535>",
5615 "ospf retransmit-interval <3-65535>",
5622 "no ip ospf retransmit-interval A.B.C.D",
5666 "no ip ospf retransmit-interval",
5674 "no ospf retransmit-interval",
5681 "ip ospf transmit-delay <1-65535> A.B.C.D",
5726 "ip ospf transmit-delay <1-65535>",
5734 "ospf transmit-delay <1-65535>",
5741 "no ip ospf transmit-delay A.B.C.D",
5785 "no ip ospf transmit-delay",
5793 "no ospf transmit-delay",
5812 struct ospf *ospf = vty->index;
5836 ospf_routemap_set (ospf, source, argv[3]);
5838 ospf_routemap_unset (ospf, source);
5840 return ospf_redistribute_set (ospf, source, type, metric);
5850 struct ospf *ospf = vty->index;
5857 ospf_routemap_unset (ospf, source);
5858 return ospf_redistribute_unset (ospf, source);
5869 struct ospf *ospf = vty->index;
5877 return ospf_distribute_list_out_set (ospf, source, argv[0]);
5889 struct ospf *ospf = vty->index;
5896 return ospf_distribute_list_out_unset (ospf, source, argv[0]);
5915 struct ospf *ospf = vty->index;
5938 ospf_routemap_set (ospf, DEFAULT_ROUTE, argv[3]);
5940 ospf_routemap_unset (ospf, DEFAULT_ROUTE);
5942 return ospf_redistribute_default_set (ospf, default_originate,
5953 struct ospf *ospf = vty->index;
5960 ospf_external_lsa_flush (ospf, DEFAULT_ROUTE, &p, 0);
5968 ospf_routemap_unset (ospf, DEFAULT_ROUTE);
5969 return ospf_redistribute_default_unset (ospf);
5978 struct ospf *ospf = vty->index;
5984 ospf->default_metric = metric;
5995 struct ospf *ospf = vty->index;
5997 ospf->default_metric = -1;
6015 struct ospf *ospf = vty->index;
6017 ospf->distance_all = atoi (argv[0]);
6029 struct ospf *ospf = vty->index;
6031 ospf->distance_all = 0;
6038 "no distance ospf {intra-area|inter-area|external}",
6047 struct ospf *ospf = vty->index;
6053 ospf->distance_intra = 0;
6056 ospf->distance_inter = 0;
6059 ospf->distance_external = 0;
6065 ospf->distance_intra = 0;
6066 ospf->distance_inter = 0;
6067 ospf->distance_external = 0;
6074 "distance ospf "
6085 struct ospf *ospf = vty->index;
6098 ospf->distance_intra = atoi(argv[0]);
6101 ospf->distance_inter = atoi(argv[1]);
6104 ospf->distance_external = atoi(argv[2]);
6116 struct ospf *ospf = vty->index;
6118 ospf_distance_set (vty, ospf, argv[0], argv[1], NULL);
6131 struct ospf *ospf = vty->index;
6133 ospf_distance_unset (vty, ospf, argv[0], argv[1], NULL);
6146 struct ospf *ospf = vty->index;
6148 ospf_distance_set (vty, ospf, argv[0], argv[1], argv[2]);
6162 struct ospf *ospf = vty->index;
6164 ospf_distance_unset (vty, ospf, argv[0], argv[1], argv[2]);
6171 "ip ospf mtu-ignore A.B.C.D",
6213 "ip ospf mtu-ignore",
6221 "no ip ospf mtu-ignore A.B.C.D",
6263 "no ip ospf mtu-ignore",
6277 struct ospf *ospf = vty->index;
6279 for (ALL_LIST_ELEMENTS_RO (ospf->areas, ln, area))
6288 ospf->stub_router_admin_set = OSPF_STUB_ROUTER_ADMINISTRATIVE_SET;
6303 struct ospf *ospf = vty->index;
6305 for (ALL_LIST_ELEMENTS_RO (ospf->areas, ln, area))
6317 ospf->stub_router_admin_set = OSPF_STUB_ROUTER_ADMINISTRATIVE_UNSET;
6330 struct ospf *ospf = vty->index;
6340 ospf->stub_router_startup_time = seconds;
6355 struct ospf *ospf = vty->index;
6357 ospf->stub_router_startup_time = OSPF_STUB_ROUTER_UNCONFIGURED;
6359 for (ALL_LIST_ELEMENTS_RO (ospf->areas, ln, area))
6383 struct ospf *ospf = vty->index;
6393 ospf->stub_router_shutdown_time = seconds;
6406 struct ospf *ospf = vty->index;
6408 ospf->stub_router_shutdown_time = OSPF_STUB_ROUTER_UNCONFIGURED;
6414 config_write_stub_router (struct vty *vty, struct ospf *ospf)
6419 if (ospf->stub_router_startup_time != OSPF_STUB_ROUTER_UNCONFIGURED)
6421 ospf->stub_router_startup_time, VTY_NEWLINE);
6422 if (ospf->stub_router_shutdown_time != OSPF_STUB_ROUTER_UNCONFIGURED)
6424 ospf->stub_router_shutdown_time, VTY_NEWLINE);
6425 for (ALL_LIST_ELEMENTS_RO (ospf->areas, ln, area))
6592 "show ip ospf border-routers",
6598 struct ospf *ospf;
6600 if ((ospf = ospf_lookup ()) == NULL)
6606 if (ospf->new_table == NULL)
6613 show_ip_ospf_route_network (vty, ospf->new_table); */
6616 show_ip_ospf_route_router (vty, ospf->new_rtrs);
6623 "show ip ospf route",
6629 struct ospf *ospf;
6631 if ((ospf = ospf_lookup ()) == NULL)
6637 if (ospf->new_table == NULL)
6644 show_ip_ospf_route_network (vty, ospf->new_table);
6647 show_ip_ospf_route_router (vty, ospf->new_rtrs);
6650 show_ip_ospf_route_external (vty, ospf->old_external_route);
6730 vty_out (vty, " ip ospf network %s",
6766 vty_out (vty, " ip ospf authentication%s", auth_str);
6776 vty_out (vty, " ip ospf authentication-key %s",
6786 vty_out (vty, " ip ospf message-digest-key %d md5 %s",
6796 vty_out (vty, " ip ospf cost %u", params->output_cost_cmd);
6806 vty_out (vty, " ip ospf hello-interval %u", params->v_hello);
6817 vty_out (vty, " ip ospf dead-interval ");
6835 vty_out (vty, " ip ospf priority %u", params->priority);
6845 vty_out (vty, " ip ospf retransmit-interval %u",
6856 vty_out (vty, " ip ospf transmit-delay %u", params->transmit_delay);
6867 vty_out (vty, " no ip ospf mtu-ignore");
6869 vty_out (vty, " ip ospf mtu-ignore");
6900 config_write_network_area (struct vty *vty, struct ospf *ospf)
6906 for (rn = route_top (ospf->networks); rn; rn = route_next (rn))
6930 config_write_ospf_area (struct vty *vty, struct ospf *ospf)
6937 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
7032 config_write_ospf_nbr_nbma (struct vty *vty, struct ospf *ospf)
7038 for (rn = route_top (ospf->nbr_nbma); rn; rn = route_next (rn))
7056 config_write_virtual_link (struct vty *vty, struct ospf *ospf)
7063 for (ALL_LIST_ELEMENTS_RO (ospf->vlinks, node, vl_data))
7120 config_write_ospf_redistribute (struct vty *vty, struct ospf *ospf)
7129 if (ospf->dmetric[type].value >= 0)
7130 vty_out (vty, " metric %d", ospf->dmetric[type].value);
7132 if (ospf->dmetric[type].type == EXTERNAL_METRIC_TYPE_1)
7135 if (ROUTEMAP_NAME (ospf, type))
7136 vty_out (vty, " route-map %s", ROUTEMAP_NAME (ospf, type));
7145 config_write_ospf_default_metric (struct vty *vty, struct ospf *ospf)
7147 if (ospf->default_metric != -1)
7148 vty_out (vty, " default-metric %d%s", ospf->default_metric,
7154 config_write_ospf_distribute (struct vty *vty, struct ospf *ospf)
7158 if (ospf)
7162 if (DISTRIBUTE_NAME (ospf, type))
7164 DISTRIBUTE_NAME (ospf, type),
7168 if (ospf->default_originate != DEFAULT_ORIGINATE_NONE)
7171 if (ospf->default_originate == DEFAULT_ORIGINATE_ALWAYS)
7174 if (ospf->dmetric[DEFAULT_ROUTE].value >= 0)
7176 ospf->dmetric[DEFAULT_ROUTE].value);
7177 if (ospf->dmetric[DEFAULT_ROUTE].type == EXTERNAL_METRIC_TYPE_1)
7180 if (ROUTEMAP_NAME (ospf, DEFAULT_ROUTE))
7182 ROUTEMAP_NAME (ospf, DEFAULT_ROUTE));
7193 config_write_ospf_distance (struct vty *vty, struct ospf *ospf)
7198 if (ospf->distance_all)
7199 vty_out (vty, " distance %d%s", ospf->distance_all, VTY_NEWLINE);
7201 if (ospf->distance_intra
7202 || ospf->distance_inter
7203 || ospf->distance_external)
7205 vty_out (vty, " distance ospf");
7207 if (ospf->distance_intra)
7208 vty_out (vty, " intra-area %d", ospf->distance_intra);
7209 if (ospf->distance_inter)
7210 vty_out (vty, " inter-area %d", ospf->distance_inter);
7211 if (ospf->distance_external)
7212 vty_out (vty, " external %d", ospf->distance_external);
7217 for (rn = route_top (ospf->distance_table); rn; rn = route_next (rn))
7232 struct ospf *ospf;
7238 ospf = ospf_lookup ();
7239 if (ospf != NULL)
7241 /* `router ospf' print. */
7242 vty_out (vty, "router ospf%s", VTY_NEWLINE);
7246 if (!ospf->networks)
7250 if (ospf->router_id_static.s_addr != 0)
7251 vty_out (vty, " ospf router-id %s%s",
7252 inet_ntoa (ospf->router_id_static), VTY_NEWLINE);
7255 if (ospf->abr_type != OSPF_ABR_DEFAULT)
7256 vty_out (vty, " ospf abr-type %s%s",
7257 ospf_abr_type_str[ospf->abr_type], VTY_NEWLINE);
7260 if (CHECK_FLAG(ospf->config, OSPF_LOG_ADJACENCY_CHANGES))
7263 if (CHECK_FLAG(ospf->config, OSPF_LOG_ADJACENCY_DETAIL))
7269 if (CHECK_FLAG (ospf->config, OSPF_RFC1583_COMPATIBLE))
7273 if (ospf->ref_bandwidth != OSPF_DEFAULT_REF_BANDWIDTH)
7278 ospf->ref_bandwidth / 1000, VTY_NEWLINE);
7282 if (ospf->spf_delay != OSPF_SPF_DELAY_DEFAULT ||
7283 ospf->spf_holdtime != OSPF_SPF_HOLDTIME_DEFAULT ||
7284 ospf->spf_max_holdtime != OSPF_SPF_MAX_HOLDTIME_DEFAULT)
7286 ospf->spf_delay, ospf->spf_holdtime,
7287 ospf->spf_max_holdtime, VTY_NEWLINE);
7290 config_write_stub_router (vty, ospf);
7293 if (ospf->lsa_refresh_interval != OSPF_LSA_REFRESH_INTERVAL_DEFAULT)
7295 ospf->lsa_refresh_interval, VTY_NEWLINE);
7298 config_write_ospf_redistribute (vty, ospf);
7301 if (ospf->passive_interface_default == OSPF_IF_PASSIVE)
7307 ospf->passive_interface_default)
7313 for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
7323 else if (oi->params->passive_interface == ospf->passive_interface_default)
7333 config_write_network_area (vty, ospf);
7336 config_write_ospf_area (vty, ospf);
7339 config_write_ospf_nbr_nbma (vty, ospf);
7342 config_write_virtual_link (vty, ospf);
7345 config_write_ospf_default_metric (vty, ospf);
7348 config_write_ospf_distribute (vty, ospf);
7351 config_write_ospf_distance (vty, ospf);
7354 ospf_opaque_config_write_router (vty, ospf);
7364 /* "show ip ospf" commands. */
7368 /* "show ip ospf database" commands. */
7384 /* "show ip ospf interface" commands. */
7388 /* "show ip ospf neighbor" commands. */
7404 /* "show ip ospf route" commands. */
7435 /* "ip ospf authentication" commands. */
7447 /* "ip ospf message-digest-key" commands. */
7453 /* "ip ospf cost" commands. */
7461 /* "ip ospf mtu-ignore" commands. */
7467 /* "ip ospf dead-interval" commands. */
7475 /* "ip ospf hello-interval" commands. */
7481 /* "ip ospf network" commands. */
7485 /* "ip ospf priority" commands. */
7491 /* "ip ospf retransmit-interval" commands. */
7497 /* "ip ospf transmit-delay" commands. */
7568 /* Install ospf top node. */
7571 /* "router ospf" commands. */
7577 /* "ospf router-id" commands. */
7591 /* "ospf abr-type" commands. */
7595 /* "ospf log-adjacency-changes" commands. */
7601 /* "ospf rfc1583-compatible" commands. */