diff options
author | paul <paul> | 2003-03-18 00:03:05 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-18 00:03:05 +0000 |
commit | 07661cb5a81a46c9a177bbc0d963a6a74fbbce43 (patch) | |
tree | c6879c4d9bd2a70f929f5dc3261d89b1b0977f7c /bgpd/bgp_snmp.c | |
parent | 1b5d019a115bcf69786c870feb93f685ce806ff0 (diff) |
Fix build for net-snmp
Diffstat (limited to 'bgpd/bgp_snmp.c')
-rw-r--r-- | bgpd/bgp_snmp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <zebra.h> #ifdef HAVE_SNMP +#ifdef HAVE_NETSNMP +#include <net-snmp/net-snmp-config.h> +#endif #include <asn1.h> #include <snmp.h> #include <snmp_impl.h> @@ -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: { |