summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-28 17:23:45 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 13:27:47 +0200
commit1c6f50bf2dd960b7007eb254f068968fcdfd3149 (patch)
tree9fe8fb5c7b3b660fcc9f74f73787852474084626 /ospfd/ospf_snmp.c
parentzebra: fix include for SNMP (diff)
downloadfrr-1c6f50bf2dd960b7007eb254f068968fcdfd3149.tar.xz
frr-1c6f50bf2dd960b7007eb254f068968fcdfd3149.zip
*: snmp: add a load of "static" specifiers
Make it easier to see which bits in *_snmp.c are actually referenced from non-SNMP parts of the code. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 163615337..0eaf44b4d 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -209,8 +209,8 @@
SNMP_LOCAL_VARIABLES
/* OSPF-MIB instances. */
-oid ospf_oid [] = { OSPF2MIB };
-oid ospf_trap_oid [] = { OSPF2MIB, 16, 2 }; /* Not reverse mappable! */
+static oid ospf_oid [] = { OSPF2MIB };
+static oid ospf_trap_oid [] = { OSPF2MIB, 16, 2 }; /* Not reverse mappable! */
/* IP address 0.0.0.0. */
static struct in_addr ospf_empty_addr = { .s_addr = 0 };
@@ -243,7 +243,7 @@ static u_char *ospfExtLsdbEntry (struct variable *, oid *, size_t *, int,
static u_char *ospfAreaAggregateEntry (struct variable *, oid *, size_t *,
int, size_t *, WriteMethod **);
-struct variable ospf_variables[] =
+static struct variable ospf_variables[] =
{
/* OSPF general variables */
{OSPFROUTERID, IPADDRESS, RWRITE, ospfGeneralGroup,
@@ -1408,7 +1408,7 @@ ospfHostEntry (struct variable *v, oid *name, size_t *length, int exact,
return NULL;
}
-struct list *ospf_snmp_iflist;
+static struct list *ospf_snmp_iflist;
struct ospf_snmp_if
{
@@ -1912,7 +1912,7 @@ ospfIfMetricEntry (struct variable *v, oid *name, size_t *length, int exact,
return NULL;
}
-struct route_table *ospf_snmp_vl_table;
+static struct route_table *ospf_snmp_vl_table;
void
ospf_snmp_vl_add (struct ospf_vl_data *vl_data)
@@ -2618,7 +2618,7 @@ ospfAreaAggregateEntry (struct variable *v, oid *name, size_t *length,
#define NBRSTATECHANGE 2
#define VIRTNBRSTATECHANGE 3
-struct trap_object ospfNbrTrapList[] =
+static struct trap_object ospfNbrTrapList[] =
{
{-2, {1, OSPFROUTERID}},
{3, {10, 1, OSPFNBRIPADDR}},
@@ -2627,7 +2627,7 @@ struct trap_object ospfNbrTrapList[] =
};
-struct trap_object ospfVirtNbrTrapList[] =
+static struct trap_object ospfVirtNbrTrapList[] =
{
{-2, {1, 1}},
{3, {11, 1, OSPFVIRTNBRAREA}},
@@ -2635,7 +2635,7 @@ struct trap_object ospfVirtNbrTrapList[] =
{3, {11, 1, OSPFVIRTNBRSTATE}}
};
-struct trap_object ospfIfTrapList[] =
+static struct trap_object ospfIfTrapList[] =
{
{-2, {1, OSPFROUTERID}},
{3, {7, 1, OSPFIFIPADDRESS}},
@@ -2643,7 +2643,7 @@ struct trap_object ospfIfTrapList[] =
{3, {7, 1, OSPFIFSTATE}}
};
-struct trap_object ospfVirtIfTrapList[] =
+static struct trap_object ospfVirtIfTrapList[] =
{
{-2, {1, OSPFROUTERID}},
{3, {9, 1, OSPFVIRTIFAREAID}},