summaryrefslogtreecommitdiff
path: root/bgpd
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 /bgpd
parent44983cf8a9c587dfbcad294b9dfe4dccbb68ba98 (diff)
Remove usage of evil list and listnode typedefs.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/ChangeLog4
-rw-r--r--bgpd/bgp_network.c2
-rw-r--r--bgpd/bgp_nexthop.c4
-rw-r--r--bgpd/bgp_zebra.c32
4 files changed, 23 insertions, 19 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 0aac403f..ee0b3113 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-23 Hasso Tepper <hasso at quagga.net>
+
+ * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
+
2004-07-09 Paul Jakma <paul@dishone.st>
* Merge of GNU Zebra cvs2svn changesets r799, r800 and r807.
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index aa369bc1..85e12d94 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -175,7 +175,7 @@ bgp_update_address (struct interface *ifp)
{
struct prefix_ipv4 *p;
struct connected *connected;
- listnode node;
+ struct listnode *node;
for (node = listhead (ifp->connected); node; nextnode (node))
{
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index e94ecf25..4100e3df 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -815,8 +815,8 @@ bgp_connected_delete (struct connected *ifc)
int
bgp_nexthop_self (afi_t afi, struct attr *attr)
{
- listnode node;
- listnode node2;
+ struct listnode *node;
+ struct listnode *node2;
struct interface *ifp;
struct connected *ifc;
struct prefix *p;
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 394bde63..42b8fc74 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -45,7 +45,7 @@ int
bgp_if_update (struct interface *ifp)
{
struct bgp *bgp;
- listnode cn;
+ struct listnode *cn;
struct listnode *nn;
struct listnode *nm;
struct peer *peer;
@@ -86,7 +86,7 @@ bgp_if_update (struct interface *ifp)
int
bgp_if_update_all ()
{
- listnode node;
+ struct listnode *node;
struct interface *ifp;
for (node = listhead (iflist); node; node = nextnode (node))
@@ -128,7 +128,7 @@ bgp_interface_up (int command, struct zclient *zclient, zebra_size_t length)
struct stream *s;
struct interface *ifp;
struct connected *c;
- listnode node;
+ struct listnode *node;
s = zclient->ibuf;
ifp = zebra_interface_state_read (s);
@@ -151,7 +151,7 @@ bgp_interface_down (int command, struct zclient *zclient, zebra_size_t length)
struct stream *s;
struct interface *ifp;
struct connected *c;
- listnode node;
+ struct listnode *node;
s = zclient->ibuf;
ifp = zebra_interface_state_read (s);
@@ -348,8 +348,8 @@ zebra_read_ipv6 (int command, struct zclient *zclient, zebra_size_t length)
struct interface *
if_lookup_by_ipv4 (struct in_addr *addr)
{
- listnode ifnode;
- listnode cnode;
+ struct listnode *ifnode;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *connected;
struct prefix_ipv4 p;
@@ -379,8 +379,8 @@ if_lookup_by_ipv4 (struct in_addr *addr)
struct interface *
if_lookup_by_ipv4_exact (struct in_addr *addr)
{
- listnode ifnode;
- listnode cnode;
+ struct listnode *ifnode;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *connected;
struct prefix *cp;
@@ -406,8 +406,8 @@ if_lookup_by_ipv4_exact (struct in_addr *addr)
struct interface *
if_lookup_by_ipv6 (struct in6_addr *addr)
{
- listnode ifnode;
- listnode cnode;
+ struct listnode *ifnode;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *connected;
struct prefix_ipv6 p;
@@ -437,8 +437,8 @@ if_lookup_by_ipv6 (struct in6_addr *addr)
struct interface *
if_lookup_by_ipv6_exact (struct in6_addr *addr)
{
- listnode ifnode;
- listnode cnode;
+ struct listnode *ifnode;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *connected;
struct prefix *cp;
@@ -463,7 +463,7 @@ if_lookup_by_ipv6_exact (struct in6_addr *addr)
int
if_get_ipv6_global (struct interface *ifp, struct in6_addr *addr)
{
- listnode cnode;
+ struct listnode *cnode;
struct connected *connected;
struct prefix *cp;
@@ -485,7 +485,7 @@ if_get_ipv6_global (struct interface *ifp, struct in6_addr *addr)
int
if_get_ipv6_local (struct interface *ifp, struct in6_addr *addr)
{
- listnode cnode;
+ struct listnode *cnode;
struct connected *connected;
struct prefix *cp;
@@ -621,8 +621,8 @@ bgp_nexthop_set (union sockunion *local, union sockunion *remote,
unsigned int
bgp_ifindex_by_nexthop (struct in6_addr *addr)
{
- listnode ifnode;
- listnode cnode;
+ struct listnode *ifnode;
+ struct listnode *cnode;
struct interface *ifp;
struct connected *connected;
struct prefix_ipv6 p;