]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix SNMP write support
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Mar 2015 12:54:30 +0000 (13:54 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:29 +0000 (15:33 +0000)
commit9a8382f15ff90601064f43e42c73991a61f56b0e
tree636f1c33e35893eaee7ecadf630c6e2667074e76
parent7e6350359a16036e225373f10721dfdb903ed202
bgpd: fix SNMP write support

This code - dating back to the initial import in 2002 - probably never
worked.  Calling asn_parse_int seems to always have been wrong, and in
the meantime, there no longer is a "struct variable *" argument for
write_method.  If anyone tried to use it, it'd probably have crashed.
(I didn't try.)

Fix this up so it actually works.  It's the only place in Quagga where a
SNMP write is actually supported, so it's an odd one out anyway, but
heh.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit d689d1a0c69726330d69b2dd412fdb8dcb23394b)
bgpd/bgp_snmp.c