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

Lines Matching defs:o6n

48   struct ospf6_neighbor *o6n;
50 o6n = (struct ospf6_neighbor *) THREAD_ARG (thread);
51 assert (o6n);
52 memset (&o6n->last_dd, 0, sizeof (struct ospf6_dbdesc));
60 ospf6_neighbor_thread_cancel_all (struct ospf6_neighbor *o6n)
62 if (o6n->inactivity_timer)
63 thread_cancel (o6n->inactivity_timer);
64 o6n->inactivity_timer = (struct thread *) NULL;
66 if (o6n->send_update)
67 thread_cancel (o6n->send_update);
68 o6n->send_update = (struct thread *) NULL;
70 if (o6n->thread_send_dbdesc)
71 thread_cancel (o6n->thread_send_dbdesc);
72 o6n->thread_send_dbdesc = (struct thread *) NULL;
73 if (o6n->thread_rxmt_dbdesc)
74 thread_cancel (o6n->thread_rxmt_dbdesc);
75 o6n->thread_rxmt_dbdesc = (struct thread *) NULL;
77 if (o6n->thread_rxmt_lsreq)
78 thread_cancel (o6n->thread_rxmt_lsreq);
79 o6n->thread_rxmt_lsreq = (struct thread *) NULL;
290 ospf6_neighbor_delete (struct ospf6_neighbor *o6n)
292 CALL_REMOVE_HOOK (&neighbor_hook, o6n);
294 ospf6_neighbor_thread_cancel_all (o6n);
295 ospf6_neighbor_lslist_clear (o6n);
297 list_free (o6n->dbdesc_lsa);
299 ospf6_lsdb_delete (o6n->summary_list);
300 ospf6_lsdb_delete (o6n->request_list);
301 ospf6_lsdb_delete (o6n->retrans_list);
302 ospf6_lsdb_delete (o6n->dbdesc_list);
304 XFREE (MTYPE_OSPF6_NEIGHBOR, o6n);
312 struct ospf6_neighbor *o6n;
316 o6n = (struct ospf6_neighbor *) getdata (n);
317 if (o6n->router_id == router_id)
318 return o6n;
328 ospf6_neighbor_show_summary (struct vty *vty, struct ospf6_neighbor *o6n)
341 inet_ntop (AF_INET, &o6n->router_id, router_id, sizeof (router_id));
342 inet_ntop (AF_INET, &o6n->dr, dr, sizeof (dr));
343 inet_ntop (AF_INET, &o6n->bdr, bdr, sizeof (bdr));
346 ospf6_timeval_sub (&now, &o6n->last_changed, &res);
350 router_id, ospf6_neighbor_state_string[o6n->state],
351 duration, dr, bdr, o6n->ospf6_interface->interface->name,
352 ospf6_interface_state_string[o6n->ospf6_interface->state],
357 ospf6_neighbor_show (struct vty *vty, struct ospf6_neighbor *o6n)
362 inet_ntop (AF_INET6, &o6n->hisaddr, hisaddr, sizeof (hisaddr));
364 o6n->str, hisaddr, VTY_NEWLINE);
366 o6n->ospf6_interface->area->str,
367 o6n->ospf6_interface->interface->name,
368 o6n->ospf6_interface->interface->ifindex,
371 o6n->priority, ospf6_neighbor_state_string[o6n->state],
372 o6n->ospf6_stat_state_changed, VTY_NEWLINE);
375 ospf6_timeval_sub (&now, &o6n->last_changed, &res);
381 ospf6_neighbor_show_detail (struct vty *vty, struct ospf6_neighbor *o6n)
385 ospf6_neighbor_show (vty, o6n);
387 inet_ntop (AF_INET, &o6n->dr, hisdr, sizeof (hisdr));
388 inet_ntop (AF_INET, &o6n->bdr, hisbdr, sizeof (hisbdr));
391 o6n->ifid, VTY_NEWLINE);
397 "xxx", ntohs (o6n->last_dd.ifmtu),
398 (DD_IS_IBIT_SET (o6n->last_dd.bits) ? "I" : "-"),
399 (DD_IS_MBIT_SET (o6n->last_dd.bits) ? "M" : "-"),
400 (DD_IS_MSBIT_SET (o6n->last_dd.bits) ? "m" : "s"),
401 (u_long)ntohl (o6n->last_dd.seqnum), VTY_NEWLINE);
403 (DD_IS_IBIT_SET (o6n->dbdesc_bits) ? "I" : "-"),
404 (DD_IS_MBIT_SET (o6n->dbdesc_bits) ? "M" : "-"),
405 (DD_IS_MSBIT_SET (o6n->dbdesc_bits) ? "m" : "s"),
409 "SeqnumMismatch", o6n->ospf6_stat_seqnum_mismatch,
410 "BadLSReq", o6n->ospf6_stat_bad_lsreq, VTY_NEWLINE);
412 "OnewayReceived", o6n->ospf6_stat_oneway_received,
413 "InactivityTimer", o6n->ospf6_stat_inactivity_timer,
416 "DbDescRetrans", o6n->ospf6_stat_retrans_dbdesc,
417 "LSReqRetrans", o6n->ospf6_stat_retrans_lsreq,
420 "LSUpdateRetrans", o6n->ospf6_stat_retrans_lsupdate,
423 "LSAReceived", o6n->ospf6_stat_received_lsa,
424 "LSUpdateReceived", o6n->ospf6_stat_received_lsupdate,
430 o6n->lsa_send[OSPF6_MESSAGE_TYPE_DBDESC],
431 o6n->lsa_send[OSPF6_MESSAGE_TYPE_LSREQ], VTY_NEWLINE);
433 o6n->lsa_receive[OSPF6_MESSAGE_TYPE_DBDESC],
434 o6n->lsa_receive[OSPF6_MESSAGE_TYPE_LSREQ], VTY_NEWLINE);
439 ospf6_neighbor_timestamp_hello (struct ospf6_neighbor *o6n)
443 if (o6n->tv_last_hello_received.tv_sec)
445 ospf6_timeval_sub (&now, &o6n->tv_last_hello_received, &interval);
447 o6n->str, interval.tv_sec * 1000 + interval.tv_usec % 1000);
449 o6n->tv_last_hello_received.tv_sec = now.tv_sec;
450 o6n->tv_last_hello_received.tv_usec = now.tv_usec;
464 struct ospf6_neighbor *o6n;
489 o6n = getdata (nodek);
491 ospf6_neighbor_show_summary (vty, o6n);
492 else if (o6n->router_id == router_id)
493 ospf6_neighbor_show_detail (vty, o6n);
523 struct ospf6_neighbor *o6n;
543 o6n = (struct ospf6_neighbor *) getdata (k);
546 lsdb = o6n->summary_list;
548 lsdb = o6n->request_list;
550 lsdb = o6n->retrans_list;
552 lsdb = o6n->dbdesc_list;
554 vty_out (vty, "neighbor %s on interface %s: %d%s", o6n->str,