• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospfd/

Lines Matching refs:nbr

233 ospf_flood (struct ospf_neighbor *nbr, struct ospf_lsa *current,
245 inet_ntoa (nbr->router_id),
246 LOOKUP (ospf_nsm_state_msg, nbr->state),
251 oi = nbr->oi;
285 lsa_ack_flag = ospf_flood_through (nbr, new);
309 ospf_ls_retransmit_delete_nbr_all (nbr->oi->area, current);
325 new = ospf_lsa_install (nbr->oi, new);
338 ospf_flood_delayed_lsa_ack (nbr, new);
387 zlog_info ("ospf_flood_through_interface(): considering nbr %s (%s)",
406 zlog_info ("ospf_flood_through_interface(): nbr adj is not Full");
569 struct ospf_neighbor *nbr;
572 if ((nbr = rn->info) != NULL)
573 if (nbr != oi->nbr_self && nbr->state >= NSM_Exchange)
574 ospf_ls_upd_send_lsa (nbr, lsa, OSPF_SEND_PACKET_DIRECT);
759 ospf_ls_request_add (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
769 ospf_ls_request_count (nbr),
770 inet_ntoa (nbr->router_id), dump_lsa_key (lsa));
772 ospf_lsdb_add (&nbr->ls_req, lsa);
776 ospf_ls_request_count (struct ospf_neighbor *nbr)
778 return ospf_lsdb_count_all (&nbr->ls_req);
782 ospf_ls_request_isempty (struct ospf_neighbor *nbr)
784 return ospf_lsdb_isempty (&nbr->ls_req);
789 ospf_ls_request_delete (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
791 if (nbr->ls_req_last == lsa)
793 ospf_lsa_unlock (nbr->ls_req_last);
794 nbr->ls_req_last = NULL;
799 ospf_ls_request_count (nbr),
800 inet_ntoa (nbr->router_id), dump_lsa_key (lsa));
802 ospf_lsdb_delete (&nbr->ls_req, lsa);
807 ospf_ls_request_delete_all (struct ospf_neighbor *nbr)
809 ospf_lsa_unlock (nbr->ls_req_last);
810 nbr->ls_req_last = NULL;
811 ospf_lsdb_delete_all (&nbr->ls_req);
816 ospf_ls_request_lookup (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
818 return ospf_lsdb_lookup (&nbr->ls_req, lsa);
837 ospf_ls_retransmit_count (struct ospf_neighbor *nbr)
839 return ospf_lsdb_count_all (&nbr->ls_rxmt);
843 ospf_ls_retransmit_count_self (struct ospf_neighbor *nbr, int lsa_type)
845 return ospf_lsdb_count_self (&nbr->ls_rxmt, lsa_type);
849 ospf_ls_retransmit_isempty (struct ospf_neighbor *nbr)
851 return ospf_lsdb_isempty (&nbr->ls_rxmt);
856 ospf_ls_retransmit_add (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
860 old = ospf_ls_retransmit_lookup (nbr, lsa);
867 ospf_lsdb_delete (&nbr->ls_rxmt, old);
878 ospf_ls_retransmit_count (nbr),
879 inet_ntoa (nbr->router_id), dump_lsa_key (lsa));
880 ospf_lsdb_add (&nbr->ls_rxmt, lsa);
886 ospf_ls_retransmit_delete (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
888 if (ospf_ls_retransmit_lookup (nbr, lsa))
893 ospf_ls_retransmit_count (nbr),
894 inet_ntoa (nbr->router_id), dump_lsa_key (lsa));
895 ospf_lsdb_delete (&nbr->ls_rxmt, lsa);
901 ospf_ls_retransmit_clear (struct ospf_neighbor *nbr)
906 lsdb = &nbr->ls_rxmt;
916 ospf_ls_retransmit_delete (nbr, lsa);
919 ospf_lsa_unlock (nbr->ls_req_last);
920 nbr->ls_req_last = NULL;
925 ospf_ls_retransmit_lookup (struct ospf_neighbor *nbr, struct ospf_lsa *lsa)
927 return ospf_lsdb_lookup (&nbr->ls_rxmt, lsa);
942 struct ospf_neighbor *nbr;
948 if ((nbr = rn->info) != NULL)
950 lsr = ospf_ls_retransmit_lookup (nbr, lsa);
954 ospf_ls_retransmit_delete (nbr, lsr);
971 struct ospf_neighbor *nbr;
977 if ((nbr = rn->info) != NULL)
978 if (nbr->state == NSM_Full)
980 if ((old = ospf_ls_retransmit_lookup (nbr, lsa)))
981 ospf_ls_retransmit_delete (nbr, old);
983 ospf_ls_retransmit_add (nbr, lsa);