Revision e81b440f proto/ospf/ospf.c

View differences:

proto/ospf/ospf.c
224 224
    }
225 225
  }
226 226

  
227
  /*
227 228
  OSPF_TRACE(D_EVENTS, "LSA graph dump start:");
228 229
  ospf_top_dump(po->gr, p);
229 230
  OSPF_TRACE(D_EVENTS, "LSA graph dump finished");
231
  */
230 232
  neigh_dump_all();
231 233
}
232 234

  
......
500 502
}
501 503

  
502 504
static void
503
ospf_ifa_notify(struct proto *p, unsigned flags, struct ifa *a)
505
ospf_ifa_notify(struct proto *p, unsigned flags UNUSED, struct ifa *a)
504 506
{
505 507
  struct proto_ospf *po = (struct proto_ospf *) p;
506 508
  struct ospf_iface *ifa;
......
915 917
void
916 918
ospf_sh_neigh(struct proto *p, char *iff)
917 919
{
918
  struct ospf_iface *ifa = NULL, *f;
920
  struct ospf_iface *ifa = NULL;
919 921
  struct ospf_neighbor *n;
920 922
  struct proto_ospf *po = (struct proto_ospf *) p;
921 923

  
......
1006 1008
ospf_sh_iface(struct proto *p, char *iff)
1007 1009
{
1008 1010
  struct proto_ospf *po = (struct proto_ospf *) p;
1009
  struct ospf_iface *ifa = NULL, *f;
1011
  struct ospf_iface *ifa = NULL;
1010 1012

  
1011 1013
  if (p->proto_state != PS_UP)
1012 1014
  {
......
1193 1195
static inline void
1194 1196
show_lsa_sum_net(struct top_hash_entry *he)
1195 1197
{
1196
  struct ospf_lsa_header *lsa = &(he->lsa);
1197 1198
  ip_addr ip;
1198 1199
  int pxlen;
1199 1200

  
......
1217 1218
  u32 dst_rid, options;
1218 1219

  
1219 1220
#ifdef OSPFv2
1220
  struct ospf_lsa_sum *ls = he->lsa_body;
1221
  //  struct ospf_lsa_sum *ls = he->lsa_body;
1221 1222
  dst_rid = he->lsa.id;
1222 1223
  options = 0;
1223 1224
#else /* OSPFv3 */
......
1235 1236
{
1236 1237
  struct ospf_lsa_header *lsa = &(he->lsa);
1237 1238
  struct ospf_lsa_ext *ext = he->lsa_body;
1238
  struct ospf_lsa_ext_tos *et = (struct ospf_lsa_ext_tos *) (ext + 1);
1239 1239
  char str_via[STD_ADDRESS_P_LENGTH + 8] = "";
1240 1240
  char str_tag[16] = "";
1241 1241
  ip_addr ip, rt_fwaddr;
......
1493 1493
    
1494 1494
    if ((dscope != last_dscope) || (hea[i]->domain != last_domain))
1495 1495
    {
1496
      struct iface *ifa;
1497

  
1498 1496
      cli_msg(-1017, "");
1499 1497
      switch (dscope)
1500 1498
      {
......
1506 1504
	  break;
1507 1505
#ifdef OSPFv3
1508 1506
	case LSA_SCOPE_LINK:
1509
	  ifa = if_find_by_index(hea[i]->domain);
1507
	  struct iface *ifa = if_find_by_index(hea[i]->domain);
1510 1508
	  cli_msg(-1017, "Link %s", (ifa != NULL) ? ifa->name : "?");
1511 1509
	  break;
1512 1510
#endif

Also available in: Unified diff