From b8113a5e92cb19a0910041d5708f4eafeb713b54 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 7 Apr 2010 00:19:23 +0200 Subject: Implements BGP 'show protocols' info details. --- proto/ospf/ospf.c | 23 ++++++++++++----------- proto/ospf/rt.c | 3 +-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 5ed8abb..107e3a4 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -1533,15 +1533,16 @@ ospf_sh_lsadb(struct proto *p) struct protocol proto_ospf = { - name:"OSPF", - template:"ospf%d", - attr_class:EAP_OSPF, - init:ospf_init, - dump:ospf_dump, - start:ospf_start, - shutdown:ospf_shutdown, - get_route_info:ospf_get_route_info, - get_attr:ospf_get_attr, - get_status:ospf_get_status, - reconfigure:ospf_reconfigure + name: "OSPF", + template: "ospf%d", + attr_class: EAP_OSPF, + init: ospf_init, + dump: ospf_dump, + start: ospf_start, + shutdown: ospf_shutdown, + reconfigure: ospf_reconfigure, + get_status: ospf_get_status, + get_attr: ospf_get_attr, + get_route_info: ospf_get_route_info + // show_proto_info: ospf_sh }; diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 5c0b3fa..c3798e7 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -152,12 +152,11 @@ static struct ospf_iface * find_stub_src(struct ospf_area *oa, ip_addr px, int pxlen) { struct ospf_iface *iff; - struct ifa *addr; WALK_LIST(iff, oa->po->iface_list) if ((iff->type != OSPF_IT_VLINK) && (iff->oa == oa) && - ipa_equal(iff->addr->px, px) && + ipa_equal(iff->addr->prefix, px) && (iff->addr->pxlen == pxlen)) return iff; -- cgit v1.2.3