Den 21-01-2014 16:32, Daniel Tingstrom skrev:
I couldn't find an existing function to convert a prefix length to a
netmask, so I just wrote my own. Net SNMP version is 5.7.2. Here is the
patch:
Thanks for finding this!
--- route_ioctl.c.old 2012-10-09 18:28:58.0 -0400
+++
Tingstrom; net-snmp-coders@lists.sourceforge.net
Subject: Re: Creating inetCidrRouteTable row entries
Den 21-01-2014 16:32, Daniel Tingstrom skrev:
I couldn't find an existing function to convert a prefix length to a
netmask, so I just wrote my own. Net SNMP version is 5.7.2. Here
Hi,
I need to add a static route entry in linux via SNMP. So I am using
inetCidrRouteTable. Unfortunately, the implementation of
_netsnmp_ioctl_route_set_v4() in route_ioctl.c always hardcodes the route's
netmask to 0.0.0.0, allowing only default gateway routes to be added.
I had to manually