summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-23 19:18:23 +0000
committerhasso <hasso>2004-09-23 19:18:23 +0000
commit52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd (patch)
treea557339540c56dd3953c29a50ca0e48c1911efc8 /ripd
parent44983cf8a9c587dfbcad294b9dfe4dccbb68ba98 (diff)
Remove usage of evil list and listnode typedefs.
Diffstat (limited to 'ripd')
-rw-r--r--ripd/ChangeLog4
-rw-r--r--ripd/rip_interface.c26
-rw-r--r--ripd/ripd.c16
3 files changed, 25 insertions, 21 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog
index 1921b789..1b018ee6 100644
--- a/ripd/ChangeLog
+++ b/ripd/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-23 Hasso Tepper <hasso at quagga.net>
+
+ * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
+
2004-09-17 Paul Jakma <paul@dishone.st>
* ripd.c: set receive buffer to a decent size, some systems have low
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index cb6044ed..7869f2e7 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -222,7 +222,7 @@ rip_request_interface_send (struct interface *ifp, u_char version)
/* RIPv1 and non multicast interface. */
if (if_is_pointopoint (ifp) || if_is_broadcast (ifp))
{
- listnode cnode;
+ struct listnode *cnode;
if (IS_RIP_DEBUG_EVENT)
zlog_info ("broadcast request to %s", ifp->name);
@@ -315,7 +315,7 @@ rip_request_neighbor_all ()
int
rip_multicast_join (struct interface *ifp, int sock)
{
- listnode cnode;
+ struct listnode *cnode;
if (if_is_operative (ifp) && if_is_multicast (ifp))
{
@@ -348,7 +348,7 @@ rip_multicast_join (struct interface *ifp, int sock)
void
rip_multicast_leave (struct interface *ifp, int sock)
{
- listnode cnode;
+ struct listnode *cnode;
if (if_is_up (ifp) && if_is_multicast (ifp))
{
@@ -405,11 +405,11 @@ rip_if_ipv4_address_check (struct interface *ifp)
int
if_check_address (struct in_addr addr)
{
- listnode node;
+ struct listnode *node;
for (node = listhead (iflist); node; nextnode (node))
{
- listnode cnode;
+ struct listnode *cnode;
struct interface *ifp;
ifp = getdata (node);
@@ -436,13 +436,13 @@ if_check_address (struct in_addr addr)
int
if_valid_neighbor (struct in_addr addr)
{
- listnode node;
+ struct listnode *node;
struct connected *connected = NULL;
struct prefix_ipv4 *p;
for (node = listhead (iflist); node; nextnode (node))
{
- listnode cnode;
+ struct listnode *cnode;
struct interface *ifp;
ifp = getdata (node);
@@ -609,7 +609,7 @@ rip_interface_delete (int command, struct zclient *zclient,
void
rip_interface_clean ()
{
- listnode node;
+ struct listnode *node;
struct interface *ifp;
struct rip_interface *ri;
@@ -633,7 +633,7 @@ rip_interface_clean ()
void
rip_interface_reset ()
{
- listnode node;
+ struct listnode *node;
struct interface *ifp;
struct rip_interface *ri;
@@ -744,7 +744,7 @@ void
rip_if_down_all ()
{
struct interface *ifp;
- listnode node;
+ struct listnode *node;
for (node = listhead (iflist); node; nextnode (node))
{
@@ -1173,7 +1173,7 @@ void
rip_enable_apply_all ()
{
struct interface *ifp;
- listnode node;
+ struct listnode *node;
/* Check each interface. */
for (node = listhead (iflist); node; nextnode (node))
@@ -1298,7 +1298,7 @@ void
rip_passive_interface_apply_all ()
{
struct interface *ifp;
- listnode node;
+ struct listnode *node;
for (node = listhead (iflist); node; nextnode (node))
{
@@ -2022,7 +2022,7 @@ DEFUN (no_rip_passive_interface,
int
rip_interface_config_write (struct vty *vty)
{
- listnode node;
+ struct listnode *node;
struct interface *ifp;
for (node = listhead (iflist); node; nextnode (node))
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 5fbb3492..6b79a16b 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -357,8 +357,8 @@ rip_outgoing_filter (struct prefix_ipv4 *p, struct rip_interface *ri)
static int
rip_nexthop_check (struct in_addr *addr)
{
- listnode node;
- listnode cnode;
+ struct listnode *node;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *ifc;
struct prefix *p;
@@ -2391,7 +2391,7 @@ rip_update_interface (struct interface *ifp, u_char version, int route_type,
{
struct prefix_ipv4 *p;
struct connected *connected;
- listnode node;
+ struct listnode *node;
struct sockaddr_in to;
struct prefix_ipv4 *saddr = (struct prefix_ipv4 *) sconn->address;
@@ -2440,7 +2440,7 @@ rip_update_interface (struct interface *ifp, u_char version, int route_type,
void
rip_update_process (int route_type)
{
- listnode node, ifnode;
+ struct listnode *node, *ifnode;
struct connected *connected;
struct interface *ifp;
struct rip_interface *ri;
@@ -2710,7 +2710,7 @@ rip_request_send (struct sockaddr_in *to, struct interface *ifp,
{
struct rte *rte;
struct rip_packet rip_packet;
- listnode node;
+ struct listnode *node;
memset (&rip_packet, 0, sizeof (rip_packet));
@@ -3485,7 +3485,7 @@ DEFUN (show_ip_rip_status,
"Show RIP routes\n"
"IP routing protocol process parameters and statistics\n")
{
- listnode node;
+ struct listnode *node;
struct interface *ifp;
struct rip_interface *ri;
extern struct message ri_version_msg[];
@@ -3755,7 +3755,7 @@ void
rip_distribute_update_all (struct prefix_list *notused)
{
struct interface *ifp;
- listnode node;
+ struct listnode *node;
for (node = listhead (iflist); node; nextnode (node))
{
@@ -3949,7 +3949,7 @@ void
rip_routemap_update (char *notused)
{
struct interface *ifp;
- listnode node;
+ struct listnode *node;
for (node = listhead (iflist); node; nextnode (node))
{