• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospfd/

Lines Matching refs:top

163 ospf_opaque_type11_lsa_init (struct ospf *top)
165 if (top->opaque_lsa_self != NULL)
166 list_delete (top->opaque_lsa_self);
168 top->opaque_lsa_self = list_new ();
169 top->opaque_lsa_self->del = free_opaque_info_per_type;
170 top->t_opaque_lsa_self = NULL;
173 top->lsdb->new_lsa_hook = ospf_opaque_lsa_install_hook;
174 top->lsdb->del_lsa_hook = ospf_opaque_lsa_delete_hook;
180 ospf_opaque_type11_lsa_term (struct ospf *top)
183 top->lsdb->new_lsa_hook =
184 top->lsdb->del_lsa_hook = NULL;
187 OSPF_TIMER_OFF (top->t_opaque_lsa_self);
188 if (top->opaque_lsa_self != NULL)
189 list_delete (top->opaque_lsa_self);
190 top->opaque_lsa_self = NULL;
490 struct ospf *top;
511 top = ospf_top;
512 if (new->area != NULL && (top = new->area->top) == NULL)
518 oipt->owner = top;
519 listnode_add (top->opaque_lsa_self, oipt);
552 struct ospf *top;
575 top = ospf_top;
576 if ((area = lsa->area) != NULL && (top = area->top) == NULL)
581 listtop = top->opaque_lsa_self;
966 struct ospf *top;
969 if ((top = oi_to_top (nbr->oi)) == NULL)
976 if (! CHECK_FLAG (top->opaque, OPAQUE_OPERATION_READY_BIT))
981 SET_FLAG (top->opaque, OPAQUE_OPERATION_READY_BIT);
1181 struct ospf *top;
1187 if ((top = oi_to_top (oi)) == NULL || (area = oi->area) == NULL)
1194 if (! CHECK_FLAG (top->opaque, OPAQUE_OPERATION_READY_BIT))
1200 if (IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque))
1216 ospf_opaque_lsa_reoriginate_resume ( top->opaque_lsa_self, (void *) top);
1250 && list_isempty (top->opaque_lsa_self)
1251 && top->t_opaque_lsa_self == NULL)
1260 top->t_opaque_lsa_self =
1262 top, delay);
1303 && ! list_isempty (top->opaque_lsa_self))
1305 for (node = listhead (top->opaque_lsa_self); node; nextnode (node))
1313 ospf_opaque_lsa_reoriginate_schedule ((void *) top,
1364 struct ospf *top;
1367 top = THREAD_ARG (t);
1368 top->t_opaque_lsa_self = NULL;
1373 rc = opaque_lsa_originate_callback (ospf_opaque_type11_funclist, top);
1421 struct ospf *top;
1457 if (lsa->area == NULL || (top = lsa->area->top) == NULL)
1465 top = ospf_top;
1466 if (lsa->area != NULL && (top = lsa->area->top) == NULL)
1478 ospf_refresher_register_lsa (top, lsa);
1531 struct ospf *top;
1548 if ((top = oi_to_top (oi)) == NULL)
1568 if ((top = area->top) == NULL)
1583 if ((top = (struct ospf *) lsa_type_dependent) == NULL)
1589 && list_isempty (top->opaque_lsa_self)
1590 && top->t_opaque_lsa_self != NULL)
1597 dummy.top = top;
1608 if (! CHECK_FLAG (top->opaque, OPAQUE_OPERATION_READY_BIT))
1614 if (IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque))
1688 struct ospf *top;
1703 if ((top = oi_to_top (oi)) == NULL)
1709 if (! CHECK_FLAG (top->config, OSPF_OPAQUE_CAPABLE)
1735 struct ospf *top;
1751 if (area == NULL || (top = area->top) == NULL)
1767 if (n == 0 || ! CHECK_FLAG (top->config, OSPF_OPAQUE_CAPABLE))
1790 struct ospf *top;
1803 if ((top = (struct ospf *) oipt->owner) == NULL)
1809 if (! CHECK_FLAG (top->config, OSPF_OPAQUE_CAPABLE))
1822 rc = (* functab->lsa_originator)(top);
1972 static void ospf_opaque_type11_lsa_rxmt_nbr_check (struct ospf *top);
1978 struct ospf *top;
1984 if ((top = oi_to_top (nbr->oi)) == NULL)
2006 if (! IPV4_ADDR_SAME (&lsa->data->adv_router, &top->router_id))
2043 for (node2 = listhead (top->oiflist); node2; nextnode (node2))
2090 struct ospf *top;
2095 if ((top = oi_to_top (nbr->oi)) == NULL)
2098 before = IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque);
2117 SET_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_09_LSA_BIT);
2121 SET_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_10_LSA_BIT);
2125 SET_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_11_LSA_BIT);
2136 if (before == 0 && IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque))
2149 struct ospf *top;
2154 if ((top = oi_to_top (nbr->oi)) == NULL)
2182 if (IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque))
2188 && CHECK_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_09_LSA_BIT))
2192 && CHECK_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_10_LSA_BIT))
2196 && CHECK_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_11_LSA_BIT))
2197 ospf_opaque_type11_lsa_rxmt_nbr_check (top);
2199 if (IS_OPAQUE_LSA_ORIGINATION_BLOCKED (top->opaque))
2205 if (! CHECK_FLAG (top->config, OSPF_OPAQUE_CAPABLE))
2210 for (node = listhead (top->oiflist); node; nextnode (node))
2238 UNSET_FLAG (oi->area->top->opaque, OPAQUE_BLOCK_TYPE_09_LSA_BIT);
2269 UNSET_FLAG (area->top->opaque, OPAQUE_BLOCK_TYPE_10_LSA_BIT);
2276 ospf_opaque_type11_lsa_rxmt_nbr_check (struct ospf *top)
2282 for (node = listhead (top->oiflist); node; nextnode (node))
2305 UNSET_FLAG (top->opaque, OPAQUE_BLOCK_TYPE_11_LSA_BIT);
2317 struct ospf *top;
2324 if ((top = oi_to_top (nbr->oi)) == NULL)
2326 if (IPV4_ADDR_SAME (&nbr->router_id, &top->router_id))
2363 struct ospf *top = NULL;
2366 if (oi == NULL || (area = oi->area) == NULL || (top = area->top) == NULL)
2369 return top;