Home
last modified time | relevance | path

Searched refs:nbr (Results 1 – 25 of 92) sorted by relevance

1234

/openbsd/usr.sbin/ospfd/
H A Dneighbor.c126 if (nbr == nbr->iface->self) in nbr_fsm()
202 nbr->peerid, 0, &nbr->state, sizeof(nbr->state)); in nbr_fsm()
241 struct nbr *nbr; in nbr_init() local
274 struct nbr *nbr; in nbr_new() local
329 nbr_del(struct nbr *nbr) in nbr_del() argument
360 struct nbr *nbr; in nbr_find_peerid() local
375 struct nbr *nbr = NULL; in nbr_find_id() local
389 struct nbr *nbr = arg; in nbr_itimer() local
431 struct nbr *nbr = arg; in nbr_adj_timer() local
473 nbr_adj_ok(struct nbr *nbr) in nbr_adj_ok() argument
[all …]
H A Ddatabase.c40 send_db_description(struct nbr *nbr) in send_db_description() argument
217 if ((nbr->capa_options & nbr->options) != nbr->options) { in recv_db_description()
221 nbr->capa_options, nbr->options); in recv_db_description()
342 if (!nbr->dd_master || !nbr->dd_more) in recv_db_description()
366 db_sum_list_next(struct nbr *nbr) in db_sum_list_next() argument
378 db_sum_list_clr(struct nbr *nbr) in db_sum_list_clr() argument
388 struct nbr *nbr = arg; in db_tx_timer() local
421 start_db_tx_timer(struct nbr *nbr) in start_db_tx_timer() argument
425 if (nbr == nbr->iface->self) in start_db_tx_timer()
434 stop_db_tx_timer(struct nbr *nbr) in stop_db_tx_timer() argument
[all …]
H A Dlsreq.c32 send_ls_req(struct nbr *nbr) in send_ls_req() argument
92 recv_ls_req(struct nbr *nbr, char *buf, u_int16_t len) in recv_ls_req() argument
103 inet_ntoa(nbr->id), nbr->iface->name); in recv_ls_req()
117 ls_req_list_add(struct nbr *nbr, struct lsa_hdr *lsa) in ls_req_list_add() argument
171 ls_req_list_clr(struct nbr *nbr) in ls_req_list_clr() argument
186 ls_req_list_empty(struct nbr *nbr) in ls_req_list_empty() argument
195 struct nbr *nbr = arg; in ls_req_tx_timer() local
229 start_ls_req_tx_timer(struct nbr *nbr) in start_ls_req_tx_timer() argument
233 if (nbr == nbr->iface->self) in start_ls_req_tx_timer()
242 stop_ls_req_tx_timer(struct nbr *nbr) in stop_ls_req_tx_timer() argument
[all …]
H A Dlsupdate.c48 struct nbr *nbr; in lsa_flood() local
234 recv_ls_update(struct nbr *nbr, char *buf, u_int16_t len) in recv_ls_update() argument
259 inet_ntoa(nbr->id), nbr->iface->name); in recv_ls_update()
297 ls_retrans_list_add(struct nbr *nbr, struct lsa_hdr *lsa, in ls_retrans_list_add() argument
413 ls_retrans_list_free(struct nbr *nbr, struct lsa_entry *le) in ls_retrans_list_free() argument
422 ls_retrans_list_clr(struct nbr *nbr) in ls_retrans_list_clr() argument
438 struct nbr *nbr = bula; in ls_retrans_timer() local
453 if (nbr->iface->self == nbr) { in ls_retrans_timer()
466 lsa_flood(nbr->iface, nbr, &le->le_ref->hdr, in ls_retrans_timer()
497 inet_ntoa(nbr->id), nbr->iface->name); in ls_retrans_timer()
[all …]
H A Dospfe.h54 struct nbr { struct
55 LIST_ENTRY(nbr) entry, hash;
100 struct nbr *); argument
112 void db_sum_list_clr(struct nbr *);
115 void stop_db_tx_timer(struct nbr *);
173 int send_ls_req(struct nbr *);
179 void ls_req_list_clr(struct nbr *);
206 void nbr_del(struct nbr *);
223 int nbr_act_eval(struct nbr *);
226 int nbr_act_adj_ok(struct nbr *);
[all …]
H A Dhello.c42 struct nbr *nbr; in send_hello() local
96 if ((nbr->state >= NBR_STA_INIT) && (nbr != iface->self)) in send_hello()
97 if (ibuf_add(buf, &nbr->id, sizeof(nbr->id))) in send_hello()
121 struct nbr *nbr = NULL, *dr; in recv_hello() local
173 if (nbr == iface->self) { in recv_hello()
186 if (!nbr) { in recv_hello()
206 nbr->options = hello.opts; in recv_hello()
253 if ((nbr->addr.s_addr == nbr->dr.s_addr && in recv_hello()
255 (nbr->addr.s_addr != nbr->dr.s_addr && in recv_hello()
259 if ((nbr->addr.s_addr == nbr->bdr.s_addr && in recv_hello()
[all …]
/openbsd/usr.sbin/ospf6d/
H A Dneighbor.c126 if (nbr == nbr->iface->self) in nbr_fsm()
216 nbr->peerid, 0, &nbr->state, sizeof(nbr->state)); in nbr_fsm()
242 struct nbr *nbr; in nbr_init() local
276 struct nbr *nbr; in nbr_new() local
334 nbr_del(struct nbr *nbr) in nbr_del() argument
364 struct nbr *nbr; in nbr_find_peerid() local
379 struct nbr *nbr = NULL; in nbr_find_id() local
393 struct nbr *nbr = arg; in nbr_itimer() local
435 struct nbr *nbr = arg; in nbr_adj_timer() local
478 nbr_adj_ok(struct nbr *nbr) in nbr_adj_ok() argument
[all …]
H A Ddatabase.c38 send_db_description(struct nbr *nbr) in send_db_description() argument
249 inet_ntoa(nbr->id), nbr->iface->name, in recv_db_description()
283 inet_ntoa(nbr->id), nbr->iface->name, in recv_db_description()
329 if (!nbr->dd_master || !nbr->dd_more) in recv_db_description()
353 db_sum_list_next(struct nbr *nbr) in db_sum_list_next() argument
365 db_sum_list_clr(struct nbr *nbr) in db_sum_list_clr() argument
375 struct nbr *nbr = arg; in db_tx_timer() local
408 start_db_tx_timer(struct nbr *nbr) in start_db_tx_timer() argument
412 if (nbr == nbr->iface->self) in start_db_tx_timer()
421 stop_db_tx_timer(struct nbr *nbr) in stop_db_tx_timer() argument
[all …]
H A Dlsreq.c33 send_ls_req(struct nbr *nbr) in send_ls_req() argument
90 recv_ls_req(struct nbr *nbr, char *buf, u_int16_t len) in recv_ls_req() argument
101 inet_ntoa(nbr->id), nbr->iface->name); in recv_ls_req()
115 ls_req_list_add(struct nbr *nbr, struct lsa_hdr *lsa) in ls_req_list_add() argument
169 ls_req_list_clr(struct nbr *nbr) in ls_req_list_clr() argument
184 ls_req_list_empty(struct nbr *nbr) in ls_req_list_empty() argument
193 struct nbr *nbr = arg; in ls_req_tx_timer() local
227 start_ls_req_tx_timer(struct nbr *nbr) in start_ls_req_tx_timer() argument
231 if (nbr == nbr->iface->self) in start_ls_req_tx_timer()
240 stop_ls_req_tx_timer(struct nbr *nbr) in stop_ls_req_tx_timer() argument
[all …]
H A Dlsupdate.c51 struct nbr *nbr; in lsa_flood() local
241 recv_ls_update(struct nbr *nbr, char *buf, u_int16_t len) in recv_ls_update() argument
266 inet_ntoa(nbr->id), nbr->iface->name); in recv_ls_update()
304 ls_retrans_list_add(struct nbr *nbr, struct lsa_hdr *lsa, in ls_retrans_list_add() argument
420 ls_retrans_list_free(struct nbr *nbr, struct lsa_entry *le) in ls_retrans_list_free() argument
429 ls_retrans_list_clr(struct nbr *nbr) in ls_retrans_list_clr() argument
445 struct nbr *nbr = bula; in ls_retrans_timer() local
460 if (nbr->iface->self == nbr) { in ls_retrans_timer()
473 lsa_flood(nbr->iface, nbr, &le->le_ref->hdr, in ls_retrans_timer()
505 inet_ntoa(nbr->id), nbr->iface->name); in ls_retrans_timer()
[all …]
H A Dospfe.h54 struct nbr { struct
55 LIST_ENTRY(nbr) entry, hash;
103 void db_sum_list_clr(struct nbr *);
106 void stop_db_tx_timer(struct nbr *);
164 int send_ls_req(struct nbr *);
170 void ls_req_list_clr(struct nbr *);
198 void nbr_del(struct nbr *);
207 void nbr_stop_itimer(struct nbr *);
215 int nbr_act_eval(struct nbr *);
218 int nbr_act_adj_ok(struct nbr *);
[all …]
H A Dhello.c40 struct nbr *nbr; in send_hello() local
92 if ((nbr->state >= NBR_STA_INIT) && (nbr != iface->self)) in send_hello()
93 if (ibuf_add(buf, &nbr->id, sizeof(nbr->id))) in send_hello()
117 struct nbr *nbr = NULL, *dr; in recv_hello() local
168 if (!nbr) { in recv_hello()
175 nbr->addr = *src; in recv_hello()
181 nbr->addr = *src; in recv_hello()
231 if ((nbr->id.s_addr == nbr->dr.s_addr && in recv_hello()
233 (nbr->id.s_addr != nbr->dr.s_addr && in recv_hello()
237 if ((nbr->id.s_addr == nbr->bdr.s_addr && in recv_hello()
[all …]
/openbsd/usr.sbin/ldpd/
H A Dneighbor.c194 nbr->tcp = tcp_new(nbr->fd, nbr); in nbr_fsm()
225 struct nbr *nbr; in nbr_new() local
252 adj->nbr = nbr; in nbr_new()
287 nbr_del(struct nbr *nbr) in nbr_del() argument
386 struct nbr *nbr = arg; in nbr_ktimer() local
417 struct nbr *nbr = arg; in nbr_ktimeout() local
449 struct nbr *nbr = arg; in nbr_itimeout() local
480 struct nbr *nbr = arg; in nbr_idtimer() local
545 struct nbr *nbr = arg; in nbr_connect_cb() local
575 nbr->fd = socket(nbr->af, in nbr_establish_connection()
[all …]
H A Dldpe.h49 struct nbr *nbr; member
58 struct nbr *nbr; member
65 struct nbr { struct
109 RB_HEAD(nbr_id_head, nbr); argument
111 RB_HEAD(nbr_addr_head, nbr);
113 RB_HEAD(nbr_pid_head, nbr);
156 void send_init(struct nbr *);
162 void send_keepalive(struct nbr *);
236 void nbr_del(struct nbr *);
269 void session_close(struct nbr *);
[all …]
H A Dinit.c33 send_init(struct nbr *nbr) in send_init() argument
62 recv_init(struct nbr *nbr, char *buf, uint16_t len) in recv_init() argument
152 inet_ntoa(nbr->id)); in recv_init()
191 inet_ntoa(nbr->id)); in recv_init()
204 nbr->keepalive = min(nbr_get_keepalive(nbr->af, nbr->id), in recv_init()
223 send_capability(struct nbr *nbr, uint16_t capability, int enable) in send_capability() argument
264 nbr_fsm(nbr, NBR_EVT_PDU_SENT); in send_capability()
268 recv_capability(struct nbr *nbr, char *buf, uint16_t len) in recv_capability() argument
381 gen_init_prms_tlv(struct ibuf *buf, struct nbr *nbr) in gen_init_prms_tlv() argument
389 parms.keepalive_time = htons(nbr_get_keepalive(nbr->af, nbr->id)); in gen_init_prms_tlv()
[all …]
H A Dpacket.c323 struct nbr *nbr; in session_accept() local
353 if (nbr == NULL) { in session_accept()
388 session_accept_nbr(struct nbr *nbr, int fd) in session_accept_nbr() argument
417 nbr->tcp = tcp_new(fd, nbr); in session_accept_nbr()
424 struct nbr *nbr = arg; in session_read() local
596 struct nbr *nbr = tcp->nbr; in session_write() local
642 session_close(struct nbr *nbr) in session_close() argument
683 tcp_new(int fd, struct nbr *nbr) in tcp_new() argument
693 if (nbr) { in tcp_new()
700 tcp->nbr = nbr; in tcp_new()
[all …]
H A Daddress.c41 send_address(struct nbr *nbr, int af, struct if_addr_head *addr_list, in send_address() argument
111 nbr_fsm(nbr, NBR_EVT_PDU_SENT); in send_address()
115 send_address_single(struct nbr *nbr, struct if_addr *if_addr, int withdraw) in send_address_single() argument
125 send_address_all(struct nbr *nbr, int af) in send_address_all() argument
144 send_mac_withdrawal(struct nbr *nbr, struct map *fec, uint8_t *mac) in send_mac_withdrawal() argument
174 nbr_fsm(nbr, NBR_EVT_PDU_SENT); in send_mac_withdrawal()
178 recv_address(struct nbr *nbr, char *buf, uint16_t len) in recv_address() argument
221 if (!nbr->v4_enabled) in recv_address()
226 if (!nbr->v6_enabled) in recv_address()
398 log_msg_address(int out, uint16_t msg_type, struct nbr *nbr, int af, in log_msg_address() argument
[all …]
/openbsd/usr.sbin/dvmrpd/
H A Dneighbor.c190 struct nbr *nbr = NULL; in nbr_new() local
221 nbr_del(struct nbr *nbr) in nbr_del() argument
238 struct nbr *nbr; in nbr_find_peerid() local
253 struct nbr *nbr = NULL; in nbr_find_ip() local
268 struct nbr *nbr = arg; in nbr_itimer() local
276 nbr_start_itimer(struct nbr *nbr) in nbr_start_itimer() argument
289 nbr_stop_itimer(struct nbr *nbr) in nbr_stop_itimer() argument
295 nbr_reset_itimer(struct nbr *nbr) in nbr_reset_itimer() argument
307 nbr_act_start(struct nbr *nbr) in nbr_act_start() argument
349 nbr_act_delete(struct nbr *nbr) in nbr_act_delete() argument
[all …]
H A Dprobe.c42 struct nbr *nbr; in send_probe() local
60 if (nbr->state > NBR_STA_DOWN) in send_probe()
61 ibuf_add(buf, &nbr->id, sizeof(nbr->id)); in send_probe()
82 struct nbr *nbr = NULL; in recv_probe() local
87 if (nbr->id.s_addr == src_ip) in recv_probe()
95 if (!nbr) { in recv_probe()
97 nbr->gen_id = gen_id; in recv_probe()
99 nbr->addr = src; in recv_probe()
104 if ((nbr->gen_id != gen_id) || (nbr->capabilities != capabilities)) { in recv_probe()
105 if (!nbr->compat) in recv_probe()
[all …]
H A Ddvmrpe.h48 struct nbr { struct
49 LIST_ENTRY(nbr) entry, hash;
160 int nbr_del(struct nbr *);
163 struct nbr *nbr_find_peerid(u_int32_t);
167 int nbr_start_itimer(struct nbr *);
168 int nbr_stop_itimer(struct nbr *);
169 int nbr_reset_itimer(struct nbr *);
173 int nbr_act_start(struct nbr *);
174 int nbr_act_reset_itimer(struct nbr *);
176 int nbr_act_delete(struct nbr *);
[all …]
/openbsd/usr.sbin/eigrpd/
H A Dneighbor.c41 nbr_compare(struct nbr *a, struct nbr *b) in nbr_compare()
52 nbr_pid_compare(struct nbr *a, struct nbr *b) in nbr_pid_compare()
62 struct nbr *nbr; in nbr_new() local
98 nbr_init(struct nbr *nbr) in nbr_init() argument
122 nbr_del(struct nbr *nbr) in nbr_del() argument
148 nbr_update_peerid(struct nbr *nbr) in nbr_update_peerid() argument
190 nbr_to_ctl(struct nbr *nbr) in nbr_to_ctl() argument
210 struct nbr *nbr, *safe; in nbr_clear_ctl() local
238 struct nbr *nbr = arg; in nbr_timeout() local
247 nbr_start_timeout(struct nbr *nbr) in nbr_start_timeout() argument
[all …]
H A Drtp.c76 pkt->nbr = nbr; in rtp_packet_new()
95 rtp_process_ack(struct nbr *nbr, uint32_t ack_num) in rtp_process_ack() argument
120 send_packet(pkt->nbr->ei, pkt->nbr, 0, pkt->pbuf->buf); in rtp_send_packet()
145 rtp_send_ucast(struct nbr *nbr, struct ibuf *buf) in rtp_send_ucast() argument
161 struct nbr *nbr; in rtp_send_mcast() local
221 if (nbr) in rtp_send()
228 rtp_send_ack(struct nbr *nbr) in rtp_send_ack() argument
245 send_packet(nbr->ei, nbr, 0, buf); in rtp_send_ack()
291 struct nbr *nbr = arg; in rtp_ack_timer() local
297 rtp_ack_start_timer(struct nbr *nbr) in rtp_ack_start_timer() argument
[all …]
H A Drde_dual.c250 if (route->nbr == nbr) in route_find()
265 route->nbr = nbr; in route_new()
454 reply->nbr = nbr; in reply_outstanding_add()
470 if (reply->nbr == nbr) in reply_outstanding_find()
490 struct rde_nbr *nbr = reply->nbr; in reply_active_timer() local
1009 if (nbr == rn->successor.nbr) in rde_check_query()
1021 if (nbr == rn->successor.nbr) { in rde_check_query()
1212 if (nbr == rn->successor.nbr) in rde_check_link_down_rn()
1216 if (nbr == rn->successor.nbr) in rde_check_link_down_rn()
1241 if (rn->successor.nbr == nbr) in rde_check_link_down_nbr()
[all …]
H A Deigrpe.h35 struct nbr *nbr; member
42 struct nbr { struct
43 RB_ENTRY(nbr) addr_tree, pid_tree;
44 TAILQ_ENTRY(nbr) entry;
119 void nbr_init(struct nbr *);
120 void nbr_del(struct nbr *);
122 struct nbr *nbr_find_peerid(uint32_t);
125 void nbr_start_timeout(struct nbr *);
132 void rtp_send_ack(struct nbr *);
135 void rtp_ack_stop_timer(struct nbr *);
[all …]
/openbsd/usr.sbin/ripd/
H A Dneighbor.c174 struct nbr *nbr = NULL; in nbr_new() local
200 inet_ntoa(nbr->id), nbr->peerid); in nbr_new()
206 nbr_del(struct nbr *nbr) in nbr_del() argument
221 nbr_act_del(struct nbr *nbr) in nbr_act_del() argument
244 struct nbr *nbr; in nbr_find_peerid() local
259 struct nbr *nbr = NULL; in nbr_find_ip() local
272 nbr_failed_new(struct nbr *nbr) in nbr_failed_new() argument
326 struct nbr *nbr = arg; in nbr_timeout_timer() local
347 nbr_set_timer(struct nbr *nbr) in nbr_set_timer() argument
359 nbr_stop_timer(struct nbr *nbr) in nbr_stop_timer() argument
[all …]

1234