summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:53:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:58:02 +0200
commit6b0655a25194c7c0331154edaa6124cf783e5e5e (patch)
treec0c7d479f2684531249668210da27a60322ba395 /ospfd/ospf_snmp.c
parentbuild: Quagga 0.99.23-rc1 (diff)
downloadfrr-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.xz
frr-6b0655a25194c7c0331154edaa6124cf783e5e5e.zip
*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters from ancient history. Among other things, these break patchwork's XML-RPC API because \xC is not a valid character in XML documents. Nuke them from high orbit. Patches can be adapted simply by: sed -e 's%^L%%' -i filename.patch (you can type page feeds in some environments with Ctrl-V Ctrl-L) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 1daf0d6aa..7f7b15786 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -48,7 +48,7 @@
#include "ospfd/ospf_ism.h"
#include "ospfd/ospf_dump.h"
#include "ospfd/ospf_snmp.h"
-
+
/* OSPF2-MIB. */
#define OSPF2MIB 1,3,6,1,2,1,14
@@ -204,7 +204,7 @@
#define TIMETICKS ASN_TIMETICKS
#define IPADDRESS ASN_IPADDRESS
#define STRING ASN_OCTET_STR
-
+
/* Declare static local variables for convenience. */
SNMP_LOCAL_VARIABLES
@@ -501,7 +501,7 @@ struct variable ospf_variables[] =
{OSPFAREAAGGREGATEEFFECT, INTEGER, RWRITE, ospfAreaAggregateEntry,
3, {14, 1, 6}}
};
-
+
/* The administrative status of OSPF. When OSPF is enbled on at least
one interface return 1. */
static int
@@ -1407,7 +1407,7 @@ ospfHostEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
struct list *ospf_snmp_iflist;
struct ospf_snmp_if
@@ -1911,7 +1911,7 @@ ospfIfMetricEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
struct route_table *ospf_snmp_vl_table;
void
@@ -2127,7 +2127,7 @@ ospfVirtIfEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
static struct ospf_neighbor *
ospf_snmp_nbr_lookup (struct ospf *ospf, struct in_addr *nbr_addr,
unsigned int *ifindex)
@@ -2360,7 +2360,7 @@ ospfNbrEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
static u_char *
ospfVirtNbrEntry (struct variable *v, oid *name, size_t *length, int exact,
size_t *var_len, WriteMethod **write_method)
@@ -2419,7 +2419,7 @@ ospfVirtNbrEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
static struct ospf_lsa *
ospfExtLsdbLookup (struct variable *v, oid *name, size_t *length, u_char *type,
struct in_addr *ls_id, struct in_addr *router_id, int exact)
@@ -2572,7 +2572,7 @@ ospfExtLsdbEntry (struct variable *v, oid *name, size_t *length, int exact,
}
return NULL;
}
-
+
static u_char *
ospfAreaAggregateEntry (struct variable *v, oid *name, size_t *length,
int exact, size_t *var_len, WriteMethod **write_method)
@@ -2608,7 +2608,7 @@ ospfAreaAggregateEntry (struct variable *v, oid *name, size_t *length,
}
return NULL;
}
-
+
/* OSPF Traps. */
#define IFSTATECHANGE 16
#define VIRTIFSTATECHANGE 1