Re: Creating inetCidrRouteTable row entries

2014-01-27 Thread Niels Baggesen
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 +++

RE: Creating inetCidrRouteTable row entries

2014-01-27 Thread Daniel Tingstrom
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

Creating inetCidrRouteTable row entries

2014-01-17 Thread Daniel Tingstrom
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