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

Lines Matching refs:ifp

45 int rip_if_down(struct interface *ifp);
141 rip_interface_multicast_set (int sock, struct interface *ifp)
148 for (node = listhead (ifp->connected); node; nextnode (node))
162 addr, 0, ifp->ifindex) < 0)
205 rip_request_interface_send (struct interface *ifp, u_char version)
210 if (version == RIPv2 && if_is_multicast (ifp))
214 zlog_info ("multicast request on %s", ifp->name);
216 rip_request_send (NULL, ifp, version);
221 if (if_is_pointopoint (ifp) || if_is_broadcast (ifp))
226 zlog_info ("broadcast request to %s", ifp->name);
228 for (cnode = listhead (ifp->connected); cnode; nextnode (cnode))
247 rip_request_send (&to, ifp, version);
255 rip_request_interface (struct interface *ifp)
260 if (if_is_loopback (ifp))
264 if (! if_is_up (ifp))
268 ri = ifp->info;
279 rip_request_interface_send (ifp, RIPv1);
281 rip_request_interface_send (ifp, RIPv2);
287 rip_request_interface_send (ifp, RIPv1);
289 rip_request_interface_send (ifp, RIPv2);
329 rip_multicast_join (struct interface *ifp, int sock)
333 if (if_is_up (ifp) && if_is_multicast (ifp))
337 zlog_info ("multicast join at %s", ifp->name);
339 for (cnode = listhead (ifp->connected); cnode; nextnode (cnode))
352 if (ipv4_multicast_join (sock, group, p->prefix, ifp->ifindex) < 0)
363 rip_multicast_leave (struct interface *ifp, int sock)
367 if (if_is_up (ifp) && if_is_multicast (ifp))
371 zlog_info ("multicast leave from %s", ifp->name);
373 for (cnode = listhead (ifp->connected); cnode; nextnode (cnode))
386 if (ipv4_multicast_leave (sock, group, p->prefix, ifp->ifindex) == 0)
394 rip_if_ipv4_address_check (struct interface *ifp)
400 for (nn = listhead (ifp->connected); nn; nextnode (nn))
428 struct interface *ifp;
430 ifp = getdata (node);
432 for (cnode = listhead (ifp->connected); cnode; nextnode (cnode))
461 struct interface *ifp;
463 ifp = getdata (node);
465 for (cnode = listhead (ifp->connected); cnode; nextnode (cnode))
472 if (if_is_pointopoint (ifp))
520 struct interface *ifp;
527 ifp = zebra_interface_state_read(s);
529 if (ifp == NULL)
532 rip_if_down(ifp);
536 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
545 struct interface *ifp;
549 ifp = zebra_interface_state_read (zclient->ibuf);
551 if (ifp == NULL)
557 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
560 rip_enable_apply (ifp);
563 rip_passive_interface_apply (ifp);
566 rip_distribute_update_interface (ifp);
575 struct interface *ifp;
577 ifp = zebra_interface_add_read (zclient->ibuf);
582 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
585 rip_enable_apply (ifp);
588 rip_distribute_update_interface (ifp);
599 struct interface *ifp;
605 ifp = zebra_interface_state_read(s);
607 if (ifp == NULL)
610 if (if_is_up (ifp)) {
611 rip_if_down(ifp);
615 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
618 /* if_delete(ifp); */
627 struct interface *ifp;
632 ifp = getdata (node);
633 ri = ifp->info;
651 struct interface *ifp;
656 ifp = getdata (node);
657 ri = ifp->info;
710 rip_if_down(struct interface *ifp)
721 if (rinfo->ifindex == ifp->ifindex &&
736 if ((rinfo->ifindex == ifp->ifindex) &&
746 ri = ifp->info;
752 zlog_info ("turn off %s", ifp->name);
755 rip_multicast_leave (ifp, rip->sock);
767 struct interface *ifp;
772 ifp = getdata (node);
773 rip_if_down (ifp);
799 rip_enable_apply (ifc->ifp);
802 rip_ifaddr_add (ifc->ifp, ifc);
831 rip_ifaddr_delete (ifc->ifp, ifc);
835 rip_enable_apply (ifc->ifp);
848 rip_enable_network_lookup (struct interface *ifp)
854 for (nn = listhead (ifp->connected); nn; nextnode (nn))
972 struct interface *ifp;
976 ifp = THREAD_ARG (t);
978 ri = ifp->info;
982 if (rip_multicast_join (ifp, rip->sock) < 0)
985 zlog_err ("multicast join failed, interface %s not running", ifp->name);
994 rip_request_interface (ifp);
1002 rip_connect_set (struct interface *ifp, int set)
1008 for (nn = listhead (ifp->connected); nn; nextnode (nn))
1024 &address, connected->ifp->ifindex, NULL);
1028 &address, connected->ifp->ifindex);
1031 &address, connected->ifp->ifindex, NULL);
1038 rip_enable_apply (struct interface *ifp)
1044 if (if_is_loopback (ifp))
1047 if (! if_is_up (ifp))
1050 ri = ifp->info;
1053 ret = rip_enable_network_lookup (ifp);
1062 ret = rip_enable_if_lookup (ifp->name);
1069 if ( ! rip_if_ipv4_address_check (ifp) )
1082 zlog_info ("turn on %s", ifp->name);
1087 ifp, 1);
1088 rip_connect_set (ifp, 1);
1097 zlog_info ("turn off %s", ifp->name);
1100 rip_if_down(ifp);
1103 rip_connect_set (ifp, 0);
1112 struct interface *ifp;
1118 ifp = getdata (node);
1119 rip_enable_apply (ifp);
1223 rip_passive_interface_apply (struct interface *ifp)
1228 ri = ifp->info;
1230 ret = rip_passive_interface_lookup (ifp->name);
1240 struct interface *ifp;
1245 ifp = getdata (node);
1246 rip_passive_interface_apply (ifp);
1420 struct interface *ifp;
1423 ifp = (struct interface *)vty->index;
1424 ri = ifp->info;
1450 struct interface *ifp;
1453 ifp = (struct interface *)vty->index;
1454 ri = ifp->info;
1471 struct interface *ifp;
1474 ifp = (struct interface *)vty->index;
1475 ri = ifp->info;
1491 struct interface *ifp;
1494 ifp = (struct interface *)vty->index;
1495 ri = ifp->info;
1522 struct interface *ifp;
1525 ifp = (struct interface *)vty->index;
1526 ri = ifp->info;
1552 struct interface *ifp;
1555 ifp = (struct interface *)vty->index;
1556 ri = ifp->info;
1573 struct interface *ifp;
1576 ifp = (struct interface *)vty->index;
1577 ri = ifp->info;
1593 struct interface *ifp;
1596 ifp = (struct interface *)vty->index;
1597 ri = ifp->info;
1625 struct interface *ifp;
1628 ifp = (struct interface *)vty->index;
1629 ri = ifp->info;
1653 struct interface *ifp;
1656 ifp = (struct interface *)vty->index;
1657 ri = ifp->info;
1688 struct interface *ifp;
1691 ifp = (struct interface *)vty->index;
1692 ri = ifp->info;
1724 struct interface *ifp;
1727 ifp = (struct interface *)vty->index;
1728 ri = ifp->info;
1757 struct interface *ifp;
1760 ifp = (struct interface *) vty->index;
1761 ri = ifp->info;
1787 struct interface *ifp;
1790 ifp = (struct interface *) vty->index;
1791 ri = ifp->info;
1819 struct interface *ifp;
1822 ifp = vty->index;
1823 ri = ifp->info;
1836 struct interface *ifp;
1839 ifp = vty->index;
1840 ri = ifp->info;
1873 struct interface *ifp;
1879 ifp = getdata (node);
1880 ri = ifp->info;
1882 vty_out (vty, "interface %s%s", ifp->name,
1885 if (ifp->desc)
1886 vty_out (vty, " description %s%s", ifp->desc,
1988 rip_interface_new_hook (struct interface *ifp)
1990 ifp->info = rip_interface_new ();
1996 rip_interface_delete_hook (struct interface *ifp)
1998 XFREE (MTYPE_RIP_INTERFACE, ifp->info);