Revision e81b440f proto/ospf/topology.c

View differences:

proto/ospf/topology.c
744 744
}
745 745

  
746 746
void
747
originate_sum_rt_lsa(struct ospf_area *oa, struct fib_node *fn, int metric, u32 options)
747
originate_sum_rt_lsa(struct ospf_area *oa, struct fib_node *fn, int metric, u32 options UNUSED)
748 748
{
749 749
  struct proto_ospf *po = oa->po;
750 750
  struct proto *p = &po->proto;
......
899 899
  u32 tag = ea_get_int(attrs, EA_OSPF_TAG, 0);
900 900
  int gw = 0;
901 901
  int size = sizeof(struct ospf_lsa_ext);
902
  u32 *buf;
903 902

  
904 903
  if ((e->attrs->dest == RTD_ROUTER) &&
905 904
      !ipa_equal(e->attrs->gw, IPA_NONE) &&
......
927 926
  ext->fwaddr = gw ? e->attrs->gw : IPA_NONE;
928 927
  ext->tag = tag;
929 928
#else /* OSPFv3 */
930
  buf = ext->rest;
929
  u32 *buf = ext->rest;
931 930
  buf = put_ipv6_prefix(buf, n->n.prefix, n->n.pxlen, 0, 0);
932 931

  
933 932
  if (gw)
......
1017 1016
{
1018 1017
  struct proto *p = &po->proto;
1019 1018
  struct fib_node *fn = &n->n;
1020
  struct ospf_area *oa;
1021 1019
  struct top_hash_entry *en;
1022 1020

  
1023 1021
  OSPF_TRACE(D_EVENTS, "Flushing AS-external-LSA for %I/%d",
......
1651 1649
  bug("ospf_hash_delete() called for invalid node");
1652 1650
}
1653 1651

  
1652
/*
1654 1653
static void
1655 1654
ospf_dump_lsa(struct top_hash_entry *he, struct proto *p)
1656 1655
{
1657
  /*
1656

  
1658 1657
  struct ospf_lsa_rt *rt = NULL;
1659 1658
  struct ospf_lsa_rt_link *rr = NULL;
1660 1659
  struct ospf_lsa_net *ln = NULL;
......
1688 1687
    default:
1689 1688
      break;
1690 1689
    }
1691
  */
1692 1690
}
1693 1691

  
1694 1692
void
......
1704 1702
      ospf_dump_lsa(e, p);
1705 1703
  }
1706 1704
}
1705
*/
1707 1706

  
1708 1707
/* This is very inefficient, please don't call it often */
1709 1708

  

Also available in: Unified diff