summaryrefslogtreecommitdiff
path: root/ripd/rip_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-28 13:40:05 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-01-28 13:40:05 -0500
commit94457bc6a8ce081e634e4da37a3a1c33be7871f2 (patch)
tree85a7e772c69260cc5c7533691e47377935467b9b /ripd/rip_interface.c
parentaf1cc4c84c19ff14e30cd07a276a6d1e6ee535a3 (diff)
ripd: #if 0 we know what you are up to.
rip, ripped out the #if 0 code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripd/rip_interface.c')
-rw-r--r--ripd/rip_interface.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index c601ab4047..89e7e5dc17 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -208,39 +208,6 @@ static void rip_request_interface(struct interface *ifp)
rip_request_interface_send(ifp, RIPv2);
}
-#if 0
-/* Send RIP request to the neighbor. */
-static void
-rip_request_neighbor (struct in_addr addr)
-{
- struct sockaddr_in to;
-
- memset (&to, 0, sizeof(struct sockaddr_in));
- to.sin_port = htons (RIP_PORT_DEFAULT);
- to.sin_addr = addr;
-
- rip_request_send (&to, NULL, rip->version_send, NULL);
-}
-
-/* Request routes at all interfaces. */
-static void
-rip_request_neighbor_all (void)
-{
- struct route_node *rp;
-
- if (! rip)
- return;
-
- if (IS_RIP_DEBUG_EVENT)
- zlog_debug ("request to the all neighbor");
-
- /* Send request to all neighbor. */
- for (rp = route_top (rip->neighbor); rp; rp = route_next (rp))
- if (rp->info)
- rip_request_neighbor (rp->p.u.prefix4);
-}
-#endif
-
/* Multicast packet receive socket. */
static int rip_multicast_join(struct interface *ifp, int sock)
{