From 07661cb5a81a46c9a177bbc0d963a6a74fbbce43 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 18 Mar 2003 00:03:05 +0000 Subject: Fix build for net-snmp --- bgpd/bgp_snmp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bgpd') diff --git a/bgpd/bgp_snmp.c b/bgpd/bgp_snmp.c index bf9c7f87..822036c1 100644 --- a/bgpd/bgp_snmp.c +++ b/bgpd/bgp_snmp.c @@ -21,6 +21,9 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include #ifdef HAVE_SNMP +#ifdef HAVE_NETSNMP +#include +#endif #include #include #include @@ -516,7 +519,7 @@ bgpPeerTable (struct variable *v, oid name[], size_t *length, case BGPPEEROUTTOTALMESSAGES: return SNMP_INTEGER (peer->open_out + peer->update_out + peer->keepalive_out + peer->notify_out - + peer->refresh_out, peer->dynamic_cap_out); + + peer->refresh_out + peer->dynamic_cap_out); break; case BGPPEERLASTERROR: { -- cgit v1.2.1