]> git.proxmox.com Git - mirror_frr.git/commit
agentx: handle SNMP traps
authorVincent Bernat <bernat@luffy.cx>
Fri, 25 May 2012 09:17:01 +0000 (11:17 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 25 Jun 2012 17:03:23 +0000 (19:03 +0200)
commitb7c0d0651cd64f644d02ef5e4d1b82febe7e57d8
tree5480eff7b8581e1168d23657da0f30e23100d7bc
parentb8cf46b715b2c21db5dce8118c70b4dd9b5255a3
agentx: handle SNMP traps

smux_trap() signature has been changed to provide appropriate level
information to send SNMPv2 notifications. This includes the addition
of the enterprise OID to use (from which is derived the SNMP trap OID)
and the MIB registry to locate the appropriate function for variable
bindings provided by the trap.

The SMUX implementation has been updated but ignore the provided
enterprise OID. Instead, it still uses the SMUX peer OID to keep
compatibility with previous versions of Quagga. The SMUX
implementation also ignores the provided MIB registry since it uses
smux_get() function to grab the appropriate values. This is not
possible with the AgentX implementation since there is no such
function provided by NetSNMP.
bgpd/bgp_snmp.c
lib/agentx.c
lib/smux.c
lib/smux.h
ospfd/ospf_snmp.c