Searched refs:lsdb (Results 1 - 25 of 27) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospfd/
H A Dospf_lsdb.c47 ospf_lsdb_init (struct ospf_lsdb *lsdb)
52 lsdb->type[i].db = route_table_init ();
56 ospf_lsdb_free (struct ospf_lsdb *lsdb)
58 ospf_lsdb_cleanup (lsdb);
59 XFREE (MTYPE_OSPF_LSDB, lsdb);
63 ospf_lsdb_cleanup (struct ospf_lsdb *lsdb)
66 assert (lsdb);
67 assert (lsdb->total == 0);
69 ospf_lsdb_delete_all (lsdb);
72 route_table_finish (lsdb
46 ospf_lsdb_init(struct ospf_lsdb *lsdb) argument
55 ospf_lsdb_free(struct ospf_lsdb *lsdb) argument
62 ospf_lsdb_cleanup(struct ospf_lsdb *lsdb) argument
86 ospf_lsdb_add(struct ospf_lsdb *lsdb, struct ospf_lsa *lsa) argument
119 ospf_lsdb_delete(struct ospf_lsdb *lsdb, struct ospf_lsa *lsa) argument
148 ospf_lsdb_delete_all(struct ospf_lsdb *lsdb) argument
177 ospf_lsdb_lookup(struct ospf_lsdb *lsdb, struct ospf_lsa *lsa) argument
197 ospf_lsdb_lookup_by_id(struct ospf_lsdb *lsdb, u_char type, struct in_addr id, struct in_addr adv_router) argument
224 ospf_lsdb_lookup_by_id_next(struct ospf_lsdb *lsdb, u_char type, struct in_addr id, struct in_addr adv_router, int first) argument
263 ospf_lsdb_count_all(struct ospf_lsdb *lsdb) argument
269 ospf_lsdb_count(struct ospf_lsdb *lsdb, int type) argument
275 ospf_lsdb_count_self(struct ospf_lsdb *lsdb, int type) argument
281 ospf_lsdb_isempty(struct ospf_lsdb *lsdb) argument
[all...]
H A Dospf_lsdb.h49 #define ROUTER_LSDB(A) ((A)->lsdb->type[OSPF_ROUTER_LSA].db)
50 #define NETWORK_LSDB(A) ((A)->lsdb->type[OSPF_NETWORK_LSA].db)
51 #define SUMMARY_LSDB(A) ((A)->lsdb->type[OSPF_SUMMARY_LSA].db)
52 #define ASBR_SUMMARY_LSDB(A) ((A)->lsdb->type[OSPF_ASBR_SUMMARY_LSA].db)
53 #define EXTERNAL_LSDB(O) ((O)->lsdb->type[OSPF_AS_EXTERNAL_LSA].db)
54 #define NSSA_LSDB(A) ((A)->lsdb->type[OSPF_AS_NSSA_LSA].db)
55 #define OPAQUE_LINK_LSDB(A) ((A)->lsdb->type[OSPF_OPAQUE_LINK_LSA].db)
56 #define OPAQUE_AREA_LSDB(A) ((A)->lsdb->type[OSPF_OPAQUE_AREA_LSA].db)
57 #define OPAQUE_AS_LSDB(O) ((O)->lsdb->type[OSPF_OPAQUE_AS_LSA].db)
59 #define AREA_LSDB(A,T) ((A)->lsdb
[all...]
H A Dospfd.c193 new->lsdb = ospf_lsdb_new ();
361 foreach_lsa (OPAQUE_AS_LSDB (ospf), ospf_top->lsdb, 0,
364 foreach_lsa (EXTERNAL_LSDB (ospf), ospf->lsdb, 0,
366 ospf_lsdb_delete_all (ospf->lsdb);
367 ospf_lsdb_free (ospf->lsdb);
442 new->lsdb = ospf_lsdb_new ();
464 foreach_lsa (ROUTER_LSDB (area), area->lsdb, 0, ospf_lsa_discard_callback);
465 foreach_lsa (NETWORK_LSDB (area), area->lsdb, 0, ospf_lsa_discard_callback);
466 foreach_lsa (SUMMARY_LSDB (area), area->lsdb, 0, ospf_lsa_discard_callback);
467 foreach_lsa (ASBR_SUMMARY_LSDB (area), area->lsdb,
[all...]
H A Dospf_lsa.c1154 id = ospf_lsa_unique_id (area->lsdb, OSPF_SUMMARY_LSA, p);
1281 id = ospf_lsa_unique_id (area->lsdb, OSPF_ASBR_SUMMARY_LSA, p);
1517 id = ospf_lsa_unique_id (ospf_top->lsdb, OSPF_AS_EXTERNAL_LSA, &ei->p);
2180 ospf_discard_from_db (struct ospf_lsdb *lsdb, struct ospf_lsa *lsa)
2184 old = ospf_lsdb_lookup (lsdb, lsa);
2228 struct ospf_lsdb *lsdb = NULL;
2238 lsdb = ospf_top->lsdb;
2241 lsdb = lsa->area->lsdb;
2168 ospf_discard_from_db(struct ospf_lsdb *lsdb, struct ospf_lsa *lsa) argument
2216 struct ospf_lsdb *lsdb = NULL; local
3014 ospf_lsa_unique_id(struct ospf_lsdb *lsdb, u_char type, struct prefix_ipv4 *p) argument
[all...]
H A Dospf_asbr.c214 lsa = ospf_lsdb_lookup_by_id (ospf_top->lsdb, OSPF_AS_EXTERNAL_LSA,
227 lsa = ospf_lsdb_lookup_by_id (ospf_top->lsdb, OSPF_AS_EXTERNAL_LSA,
H A Dospfd.h177 struct ospf_lsdb *lsdb; member in struct:ospf
334 struct ospf_lsdb *lsdb; member in struct:ospf_area
H A Dospf_flood.c763 * "lsdb->new_lsa_hook" to replace debug output below, just because
872 * "lsdb->new_lsa_hook" to replace debug output below, just because
903 struct ospf_lsdb *lsdb;
906 lsdb = &nbr->ls_rxmt;
910 struct route_table *table = lsdb->type[i].db;
900 struct ospf_lsdb *lsdb; local
H A Dospf_nsm.c251 struct ospf_lsdb *lsdb;
254 lsdb = &nbr->db_sum;
257 struct route_table *table = lsdb->type[i].db;
249 struct ospf_lsdb *lsdb; local
H A Dospf_opaque.c141 area->lsdb->new_lsa_hook = ospf_opaque_lsa_install_hook;
142 area->lsdb->del_lsa_hook = ospf_opaque_lsa_delete_hook;
151 area->lsdb->new_lsa_hook =
152 area->lsdb->del_lsa_hook = NULL;
173 top->lsdb->new_lsa_hook = ospf_opaque_lsa_install_hook;
174 top->lsdb->del_lsa_hook = ospf_opaque_lsa_delete_hook;
183 top->lsdb->new_lsa_hook =
184 top->lsdb->del_lsa_hook = NULL;
H A Dospf_packet.c395 struct ospf_lsdb *lsdb;
403 lsdb = &nbr->ls_rxmt;
408 struct route_table *table = lsdb->type[i].db;
2468 struct ospf_lsdb *lsdb;
2519 lsdb = &nbr->db_sum;
2523 struct route_table *table = lsdb->type[i].db;
2535 ospf_lsdb_delete (lsdb, lsa);
2564 ospf_lsdb_delete (lsdb, lsa);
2604 struct ospf_lsdb *lsdb;
2606 lsdb
393 struct ospf_lsdb *lsdb; local
2465 struct ospf_lsdb *lsdb; local
2601 struct ospf_lsdb *lsdb; local
[all...]
H A Dospf_lsa.h103 struct ospf_lsdb *lsdb; member in struct:ospf_lsa
H A Dospf_snmp.c564 return SNMP_INTEGER (ospf_lsdb_count_all (ospf_top->lsdb));
725 return SNMP_INTEGER (area->lsdb->total);
894 lsa = ospf_lsdb_lookup_by_id_next (area->lsdb, *type, *ls_id, *router_id,
949 return ospf_lsdb_lookup_by_id (area->lsdb, *type, *ls_id, *router_id);
2293 return ospf_lsdb_lookup_by_id (ospf_top->lsdb, *type, *ls_id, *router_id);
2327 lsa = ospf_lsdb_lookup_by_id_next (ospf_top->lsdb, *type, *ls_id,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospf6d/
H A Dospf6_lsdb.h60 void ospf6_lsdb_delete (struct ospf6_lsdb *lsdb);
62 void ospf6_lsdb_remove_maxage (struct ospf6_lsdb *lsdb);
70 void ospf6_lsdb_head (struct ospf6_lsdb_node *node, struct ospf6_lsdb *lsdb);
72 struct ospf6_lsdb *lsdb);
74 u_int32_t adv_router, struct ospf6_lsdb *lsdb);
77 void ospf6_lsdb_add (struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb);
78 void ospf6_lsdb_remove (struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb);
79 void ospf6_lsdb_remove_all (struct ospf6_lsdb *lsdb);
83 struct ospf6_lsdb *lsdb);
H A Dospf6_lsdb.c48 struct ospf6_lsdb *lsdb; local
50 lsdb = XCALLOC (MTYPE_OSPF6_LSDB, sizeof (struct ospf6_lsdb));
51 if (lsdb == NULL)
53 zlog_warn ("Can't malloc lsdb");
56 memset (lsdb, 0, sizeof (struct ospf6_lsdb));
58 lsdb->table = route_table_init ();
59 return lsdb;
63 ospf6_lsdb_delete (struct ospf6_lsdb *lsdb) argument
65 ospf6_lsdb_remove_all (lsdb);
66 route_table_finish (lsdb
100 ospf6_lsdb_add(struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb) argument
125 ospf6_lsdb_remove(struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb) argument
158 ospf6_lsdb_lookup_node(struct ospf6_lsdb_node *node, u_int16_t type, u_int32_t id, u_int32_t adv_router, struct ospf6_lsdb *lsdb) argument
183 ospf6_lsdb_lookup_lsdb(u_int16_t type, u_int32_t id, u_int32_t adv_router, struct ospf6_lsdb *lsdb) argument
193 ospf6_lsdb_head(struct ospf6_lsdb_node *node, struct ospf6_lsdb *lsdb) argument
217 ospf6_lsdb_type(struct ospf6_lsdb_node *node, u_int16_t type, struct ospf6_lsdb *lsdb) argument
247 ospf6_lsdb_type_router(struct ospf6_lsdb_node *node, u_int16_t type, u_int32_t adv_router, struct ospf6_lsdb *lsdb) argument
341 struct ospf6_lsdb *lsdb; local
399 ospf6_lsdb_remove_all(struct ospf6_lsdb *lsdb) argument
408 ospf6_lsdb_remove_maxage(struct ospf6_lsdb *lsdb) argument
457 show_ipv6_ospf6_lsdb(struct vty *vty, int argc, char **argv, struct ospf6_lsdb *lsdb) argument
[all...]
H A Dospf6_area.h44 struct ospf6_lsdb *lsdb; member in struct:ospf6_area
H A Dospf6_top.h47 struct ospf6_lsdb *lsdb; member in struct:ospf6
H A Dospf6_area.c70 ospf6_lsdb_remove_maxage (o6a->lsdb);
174 o6a->lsdb = ospf6_lsdb_create ();
225 ospf6_lsdb_remove_all (o6a->lsdb);
272 o6a->lsdb->count, VTY_NEWLINE);
H A Dospf6_interface.h86 struct ospf6_lsdb *lsdb; member in struct:ospf6_interface
H A Dospf6_neighbor.c222 for (ospf6_lsdb_head (&node, nei->ospf6_interface->area->ospf6->lsdb);
232 for (ospf6_lsdb_head (&node, nei->ospf6_interface->area->lsdb);
242 for (ospf6_lsdb_head (&node, nei->ospf6_interface->lsdb);
526 struct ospf6_lsdb *lsdb = NULL;
546 lsdb = o6n->summary_list;
548 lsdb = o6n->request_list;
550 lsdb = o6n->retrans_list;
552 lsdb = o6n->dbdesc_list;
555 o6i->interface->name, lsdb->count,
557 for (ospf6_lsdb_head (&node, lsdb); ! ospf6_lsdb_is_en
524 struct ospf6_lsdb *lsdb = NULL; variable in typeref:struct:ospf6_lsdb
[all...]
H A Dospf6_abr.c320 abr_id->adv_router.s_addr, area->lsdb);
327 abr_id->adv_router.s_addr, area->lsdb);
355 abr_id->adv_router.s_addr, area->lsdb);
362 abr_id->adv_router.s_addr, area->lsdb);
413 ospf6->router_id, area->lsdb);
640 area->lsdb);
H A Dospf6_top.c117 ospf6_lsdb_remove_maxage (o6->lsdb);
159 ospf6->lsdb->count, VTY_NEWLINE);
251 o6->lsdb = ospf6_lsdb_create ();
H A Dospf6_lsa.c778 struct ospf6_lsdb *lsdb = NULL;
798 /* get scoped lsdb, call remove hook */
800 lsdb = ((struct ospf6_interface *) lsa->scope)->lsdb;
802 lsdb = ((struct ospf6_area *) lsa->scope)->lsdb;
804 lsdb = ((struct ospf6 *) lsa->scope)->lsdb;
809 if (lsdb->hook)
810 (*lsdb
777 struct ospf6_lsdb *lsdb = NULL; local
[all...]
H A Dospf6_interface.c69 ospf6_lsdb_remove_maxage (o6i->lsdb);
111 o6i->lsdb = ospf6_lsdb_create ();
159 ospf6_lsdb_remove_all (o6i->lsdb);
160 ospf6_lsdb_delete (o6i->lsdb);
467 ospf6_interface->lsdb->count, VTY_NEWLINE);
H A Dospf6_asbr.c121 ospf6->router_id, ospf6->lsdb);
317 adv_router, ospf6->lsdb);
H A Dospf6_spf.c242 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);
302 adv_router, o6i->lsdb);
479 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);
646 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);

Completed in 181 milliseconds

12