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

Lines Matching defs:ri

116   struct rip_interface *ri;
118 ri = XMALLOC (MTYPE_RIP_INTERFACE, sizeof (struct rip_interface));
119 memset (ri, 0, sizeof (struct rip_interface));
124 ri->auth_type = RIP_NO_AUTH;
126 /* ri->auth_type = RIP_NO_AUTH; */
127 ri->auth_type = RIP_AUTH_SIMPLE_PASSWORD;
134 ri->split_horizon_default = 1;
135 ri->split_horizon = ri->split_horizon_default;
137 return ri;
257 struct rip_interface *ri;
268 ri = ifp->info;
273 if (ri->ri_send == RI_RIP_UNSPEC)
286 if (ri->ri_send & RIPv1)
288 if (ri->ri_send & RIPv2)
628 struct rip_interface *ri;
633 ri = ifp->info;
635 ri->enable_network = 0;
636 ri->enable_interface = 0;
637 ri->running = 0;
639 if (ri->t_wakeup)
641 thread_cancel (ri->t_wakeup);
642 ri->t_wakeup = NULL;
652 struct rip_interface *ri;
657 ri = ifp->info;
659 ri->enable_network = 0;
660 ri->enable_interface = 0;
661 ri->running = 0;
663 ri->ri_send = RI_RIP_UNSPEC;
664 ri->ri_receive = RI_RIP_UNSPEC;
667 ri->auth_type = RIP_NO_AUTH;
669 /* ri->auth_type = RIP_NO_AUTH; */
670 ri->auth_type = RIP_AUTH_SIMPLE_PASSWORD;
673 if (ri->auth_str)
675 free (ri->auth_str);
676 ri->auth_str = NULL;
678 if (ri->key_chain)
680 free (ri->key_chain);
681 ri->key_chain = NULL;
686 ri->split_horizon = 1;
687 ri->split_horizon_default = 1;
689 ri->list[RIP_FILTER_IN] = NULL;
690 ri->list[RIP_FILTER_OUT] = NULL;
692 ri->prefix[RIP_FILTER_IN] = NULL;
693 ri->prefix[RIP_FILTER_OUT] = NULL;
695 if (ri->t_wakeup)
697 thread_cancel (ri->t_wakeup);
698 ri->t_wakeup = NULL;
701 ri->recv_badpackets = 0;
702 ri->recv_badroutes = 0;
703 ri->sent_updates = 0;
705 ri->passive = 0;
714 struct rip_interface *ri = NULL;
746 ri = ifp->info;
748 if (ri->running)
757 ri->running = 0;
973 struct rip_interface *ri;
978 ri = ifp->info;
979 ri->t_wakeup = NULL;
991 ri->running = 1;
1041 struct rip_interface *ri = NULL;
1050 ri = ifp->info;
1057 ri->enable_network = 1;
1059 ri->enable_network = 0;
1064 ri->enable_interface = 1;
1066 ri->enable_interface = 0;
1071 ri->enable_network = 0;
1072 ri->enable_interface = 0;
1076 if (ri->enable_network || ri->enable_interface)
1078 if (! ri->running)
1085 if (! ri->t_wakeup)
1086 ri->t_wakeup = thread_add_timer (master, rip_interface_wakeup,
1093 if (ri->running)
1102 ri->running = 0;
1226 struct rip_interface *ri;
1228 ri = ifp->info;
1232 ri->passive = 0;
1234 ri->passive = 1;
1421 struct rip_interface *ri;
1424 ri = ifp->info;
1429 ri->ri_receive = RI_RIP_VERSION_1;
1434 ri->ri_receive = RI_RIP_VERSION_2;
1451 struct rip_interface *ri;
1454 ri = ifp->info;
1457 ri->ri_receive = RI_RIP_VERSION_1_AND_2;
1472 struct rip_interface *ri;
1475 ri = ifp->info;
1478 ri->ri_receive = RI_RIP_VERSION_1_AND_2;
1492 struct rip_interface *ri;
1495 ri = ifp->info;
1497 ri->ri_receive = RI_RIP_UNSPEC;
1523 struct rip_interface *ri;
1526 ri = ifp->info;
1531 ri->ri_send = RI_RIP_VERSION_1;
1536 ri->ri_send = RI_RIP_VERSION_2;
1553 struct rip_interface *ri;
1556 ri = ifp->info;
1559 ri->ri_send = RI_RIP_VERSION_1_AND_2;
1574 struct rip_interface *ri;
1577 ri = ifp->info;
1580 ri->ri_send = RI_RIP_VERSION_1_AND_2;
1594 struct rip_interface *ri;
1597 ri = ifp->info;
1599 ri->ri_send = RI_RIP_UNSPEC;
1626 struct rip_interface *ri;
1629 ri = ifp->info;
1632 ri->auth_type = RIP_AUTH_MD5;
1634 ri->auth_type = RIP_AUTH_SIMPLE_PASSWORD;
1654 struct rip_interface *ri;
1657 ri = ifp->info;
1660 ri->auth_type = RIP_NO_AUTH;
1662 /* ri->auth_type = RIP_NO_AUTH; */
1663 ri->auth_type = RIP_AUTH_SIMPLE_PASSWORD;
1689 struct rip_interface *ri;
1692 ri = ifp->info;
1701 if (ri->key_chain)
1707 if (ri->auth_str)
1708 free (ri->auth_str);
1710 ri->auth_str = strdup (argv[0]);
1725 struct rip_interface *ri;
1728 ri = ifp->info;
1730 if (ri->auth_str)
1731 free (ri->auth_str);
1733 ri->auth_str = NULL;
1758 struct rip_interface *ri;
1761 ri = ifp->info;
1763 if (ri->auth_str)
1770 if (ri->key_chain)
1771 free (ri->key_chain);
1773 ri->key_chain = strdup (argv[0]);
1788 struct rip_interface *ri;
1791 ri = ifp->info;
1793 if (ri->key_chain)
1794 free (ri->key_chain);
1796 ri->key_chain = NULL;
1820 struct rip_interface *ri;
1823 ri = ifp->info;
1825 ri->split_horizon = 1;
1837 struct rip_interface *ri;
1840 ri = ifp->info;
1842 ri->split_horizon = 0;
1877 struct rip_interface *ri;
1880 ri = ifp->info;
1890 if (ri->split_horizon != ri->split_horizon_default)
1892 if (ri->split_horizon)
1899 if (ri->ri_send != RI_RIP_UNSPEC)
1902 lookup (ri_version_msg, ri->ri_send),
1906 if (ri->ri_receive != RI_RIP_UNSPEC)
1909 lookup (ri_version_msg, ri->ri_receive),
1916 if (ri->auth_type == RIP_AUTH_SIMPLE_PASSWORD)
1919 if (ri->auth_type == RIP_AUTH_MD5)
1922 if (ri->auth_str)
1924 ri->auth_str, VTY_NEWLINE);
1926 if (ri->key_chain)
1928 ri->key_chain, VTY_NEWLINE);