]> git.puffer.fish Git - matthieu/frr.git/commit
snmp: let handlers accept OID from a lesser prefix
authorVincent Bernat <bernat@luffy.cx>
Thu, 31 May 2012 11:30:28 +0000 (13:30 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 25 Jun 2012 17:03:23 +0000 (19:03 +0200)
commit8046ba6ec4d6e87bf8da6563c0f3e5e66c4652b3
tree1b38b2eae4e1cee042f96a42217b14647159bf0f
parent0ff4b9c96793898429052de576d8da368e48997e
snmp: let handlers accept OID from a lesser prefix

Most table handlers do not expect to be given an OID whose prefix is
outside what they can handle. This is not a problem with the SMUX
implementation since it always correct the OID such that the prefix
matches. However, this is not the case for the AgentX
implementation. A new function, smux_header_table() is used to do this
normalization.
bgpd/bgp_snmp.c
lib/smux.h
lib/snmp.c
ospf6d/ospf6_snmp.c
ospfd/ospf_snmp.c
ripd/rip_snmp.c
zebra/zebra_snmp.c