summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorpaul <paul>2005-03-14 21:19:01 +0100
committerpaul <paul>2005-03-14 21:19:01 +0100
commit55468c86040081320f557b696e509b76ddfd6c83 (patch)
tree3ee726f155f8776d4a220997681d14c0b09addd0 /ospf6d
parent2005-03-14 Paul Jakma <paul.jakma@sun.com> (diff)
downloadfrr-55468c86040081320f557b696e509b76ddfd6c83.tar.xz
frr-55468c86040081320f557b696e509b76ddfd6c83.zip
2005-03-14 Paul Jakma <paul.jakma@sun.com>
* (global) update all c files to match the lib/vector.h rename of (struct vector).active to max, and vector_max macro to vector_active. * lib/vector.h: Rename to (struct vector).max to slightly less confusing active, for the number of active slots, distinct from allocated or active-and-not-empty. Rename vector_max to vector_active for same reason.
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_lsa.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 5edee7731..9ce0ac69a 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -92,7 +92,7 @@ ospf6_get_lsa_handler (u_int16_t type)
struct ospf6_lsa_handler *handler = NULL;
unsigned int index = ntohs (type) & OSPF6_LSTYPE_FCODE_MASK;
- if (index >= vector_max (ospf6_lsa_handler_vector))
+ if (index >= vector_active (ospf6_lsa_handler_vector))
handler = &unknown_handler;
else
handler = vector_slot (ospf6_lsa_handler_vector, index);
@@ -760,7 +760,7 @@ DEFUN (debug_ospf6_lsa_type,
type = val;
}
- for (i = 0; i < vector_max (ospf6_lsa_handler_vector); i++)
+ for (i = 0; i < vector_active (ospf6_lsa_handler_vector); i++)
{
handler = vector_slot (ospf6_lsa_handler_vector, i);
if (handler == NULL)
@@ -828,7 +828,7 @@ DEFUN (no_debug_ospf6_lsa_type,
type = val;
}
- for (i = 0; i < vector_max (ospf6_lsa_handler_vector); i++)
+ for (i = 0; i < vector_active (ospf6_lsa_handler_vector); i++)
{
handler = vector_slot (ospf6_lsa_handler_vector, i);
if (handler == NULL)
@@ -889,7 +889,7 @@ install_element_ospf6_debug_lsa ()
str = &strbuf[strlen (strbuf)];
strncat (strbuf, "debug ospf6 lsa (", STRSIZE - strlen (strbuf));
- for (i = 0; i < vector_max (ospf6_lsa_handler_vector); i++)
+ for (i = 0; i < vector_active (ospf6_lsa_handler_vector); i++)
{
handler = vector_slot (ospf6_lsa_handler_vector, i);
if (handler == NULL)
@@ -911,7 +911,7 @@ install_element_ospf6_debug_lsa ()
strncat (docbuf, "Debug Link State Advertisements (LSAs)\n",
DOCSIZE - strlen (docbuf));
- for (i = 0; i < vector_max (ospf6_lsa_handler_vector); i++)
+ for (i = 0; i < vector_active (ospf6_lsa_handler_vector); i++)
{
handler = vector_slot (ospf6_lsa_handler_vector, i);
if (handler == NULL)
@@ -976,7 +976,7 @@ config_write_ospf6_debug_lsa (struct vty *vty)
u_int i;
struct ospf6_lsa_handler *handler;
- for (i = 0; i < vector_max (ospf6_lsa_handler_vector); i++)
+ for (i = 0; i < vector_active (ospf6_lsa_handler_vector); i++)
{
handler = vector_slot (ospf6_lsa_handler_vector, i);
if (handler == NULL)