-static u_char *rip2Globals (struct variable *, oid [], size_t *,
- int, size_t *, WriteMethod **);
-static u_char *rip2IfStatEntry (struct variable *, oid [], size_t *,
- int, size_t *, WriteMethod **);
-static u_char *rip2IfConfAddress (struct variable *, oid [], size_t *,
- int, size_t *, WriteMethod **);
-static u_char *rip2PeerTable (struct variable *, oid [], size_t *,
- int, size_t *, WriteMethod **);
-
-static struct variable rip_variables[] =
-{
- /* RIP Global Counters. */
- {RIP2GLOBALROUTECHANGES, COUNTER, RONLY, rip2Globals,
- 2, {1, 1}},
- {RIP2GLOBALQUERIES, COUNTER, RONLY, rip2Globals,
- 2, {1, 2}},
- /* RIP Interface Tables. */
- {RIP2IFSTATADDRESS, IPADDRESS, RONLY, rip2IfStatEntry,
- 3, {2, 1, 1}},
- {RIP2IFSTATRCVBADPACKETS, COUNTER, RONLY, rip2IfStatEntry,
- 3, {2, 1, 2}},
- {RIP2IFSTATRCVBADROUTES, COUNTER, RONLY, rip2IfStatEntry,
- 3, {2, 1, 3}},
- {RIP2IFSTATSENTUPDATES, COUNTER, RONLY, rip2IfStatEntry,
- 3, {2, 1, 4}},
- {RIP2IFSTATSTATUS, COUNTER, RWRITE, rip2IfStatEntry,
- 3, {2, 1, 5}},
- {RIP2IFCONFADDRESS, IPADDRESS, RONLY, rip2IfConfAddress,
- /* RIP Interface Configuration Table. */
- 3, {3, 1, 1}},
- {RIP2IFCONFDOMAIN, STRING, RONLY, rip2IfConfAddress,
- 3, {3, 1, 2}},
- {RIP2IFCONFAUTHTYPE, COUNTER, RONLY, rip2IfConfAddress,
- 3, {3, 1, 3}},
- {RIP2IFCONFAUTHKEY, STRING, RONLY, rip2IfConfAddress,
- 3, {3, 1, 4}},
- {RIP2IFCONFSEND, COUNTER, RONLY, rip2IfConfAddress,
- 3, {3, 1, 5}},
- {RIP2IFCONFRECEIVE, COUNTER, RONLY, rip2IfConfAddress,
- 3, {3, 1, 6}},
- {RIP2IFCONFDEFAULTMETRIC, COUNTER, RONLY, rip2IfConfAddress,
- 3, {3, 1, 7}},
- {RIP2IFCONFSTATUS, COUNTER, RONLY, rip2IfConfAddress,
- 3, {3, 1, 8}},
- {RIP2IFCONFSRCADDRESS, IPADDRESS, RONLY, rip2IfConfAddress,
- 3, {3, 1, 9}},
- {RIP2PEERADDRESS, IPADDRESS, RONLY, rip2PeerTable,
- /* RIP Peer Table. */
- 3, {4, 1, 1}},
- {RIP2PEERDOMAIN, STRING, RONLY, rip2PeerTable,
- 3, {4, 1, 2}},
- {RIP2PEERLASTUPDATE, TIMETICKS, RONLY, rip2PeerTable,
- 3, {4, 1, 3}},
- {RIP2PEERVERSION, INTEGER, RONLY, rip2PeerTable,
- 3, {4, 1, 4}},
- {RIP2PEERRCVBADPACKETS, COUNTER, RONLY, rip2PeerTable,
- 3, {4, 1, 5}},
- {RIP2PEERRCVBADROUTES, COUNTER, RONLY, rip2PeerTable,
- 3, {4, 1, 6}}
-};
+static uint8_t *rip2Globals(struct variable *, oid[], size_t *, int, size_t *,
+ WriteMethod **);
+static uint8_t *rip2IfStatEntry(struct variable *, oid[], size_t *, int,
+ size_t *, WriteMethod **);
+static uint8_t *rip2IfConfAddress(struct variable *, oid[], size_t *, int,
+ size_t *, WriteMethod **);
+static uint8_t *rip2PeerTable(struct variable *, oid[], size_t *, int, size_t *,
+ WriteMethod **);
+
+static struct variable rip_variables[] = {
+ /* RIP Global Counters. */
+ {RIP2GLOBALROUTECHANGES, COUNTER, RONLY, rip2Globals, 2, {1, 1}},
+ {RIP2GLOBALQUERIES, COUNTER, RONLY, rip2Globals, 2, {1, 2}},
+ /* RIP Interface Tables. */
+ {RIP2IFSTATADDRESS, IPADDRESS, RONLY, rip2IfStatEntry, 3, {2, 1, 1}},
+ {RIP2IFSTATRCVBADPACKETS,
+ COUNTER,
+ RONLY,
+ rip2IfStatEntry,
+ 3,
+ {2, 1, 2}},
+ {RIP2IFSTATRCVBADROUTES, COUNTER, RONLY, rip2IfStatEntry, 3, {2, 1, 3}},
+ {RIP2IFSTATSENTUPDATES, COUNTER, RONLY, rip2IfStatEntry, 3, {2, 1, 4}},
+ {RIP2IFSTATSTATUS, COUNTER, RWRITE, rip2IfStatEntry, 3, {2, 1, 5}},
+ {RIP2IFCONFADDRESS,
+ IPADDRESS,
+ RONLY,
+ rip2IfConfAddress,
+ /* RIP Interface Configuration Table. */
+ 3,
+ {3, 1, 1}},
+ {RIP2IFCONFDOMAIN, STRING, RONLY, rip2IfConfAddress, 3, {3, 1, 2}},
+ {RIP2IFCONFAUTHTYPE, COUNTER, RONLY, rip2IfConfAddress, 3, {3, 1, 3}},
+ {RIP2IFCONFAUTHKEY, STRING, RONLY, rip2IfConfAddress, 3, {3, 1, 4}},
+ {RIP2IFCONFSEND, COUNTER, RONLY, rip2IfConfAddress, 3, {3, 1, 5}},
+ {RIP2IFCONFRECEIVE, COUNTER, RONLY, rip2IfConfAddress, 3, {3, 1, 6}},
+ {RIP2IFCONFDEFAULTMETRIC,
+ COUNTER,
+ RONLY,
+ rip2IfConfAddress,
+ 3,
+ {3, 1, 7}},
+ {RIP2IFCONFSTATUS, COUNTER, RONLY, rip2IfConfAddress, 3, {3, 1, 8}},
+ {RIP2IFCONFSRCADDRESS,
+ IPADDRESS,
+ RONLY,
+ rip2IfConfAddress,
+ 3,
+ {3, 1, 9}},
+ {RIP2PEERADDRESS,
+ IPADDRESS,
+ RONLY,
+ rip2PeerTable,
+ /* RIP Peer Table. */
+ 3,
+ {4, 1, 1}},
+ {RIP2PEERDOMAIN, STRING, RONLY, rip2PeerTable, 3, {4, 1, 2}},
+ {RIP2PEERLASTUPDATE, TIMETICKS, RONLY, rip2PeerTable, 3, {4, 1, 3}},
+ {RIP2PEERVERSION, INTEGER, RONLY, rip2PeerTable, 3, {4, 1, 4}},
+ {RIP2PEERRCVBADPACKETS, COUNTER, RONLY, rip2PeerTable, 3, {4, 1, 5}},
+ {RIP2PEERRCVBADROUTES, COUNTER, RONLY, rip2PeerTable, 3, {4, 1, 6}}};