On Fri, 05 May 2006 14:20:47 +0100 John wrote:
JR> I needed a way to report the RedHat style ethernet port alias names
JR> (/etc/sysconfig/network-scripts/ifcfg-*) as ifDescr for a series of
JR> products.
JR> 
JR> The, rather basic, patch tucks into the ifTable code and rewrites the
JR> tmp_descr field if it can find an appropriate alias, else it leaves the
JR> field well alone.

First of all, thanks for submitting your code. I know a lot of people
customize net-snmp, but not many contribute back to the project.

This code would actually belong in interface_linux.c, in the function
netsnmp_arch_interface_container_load().

Also, the patch assumes the first config file it finds using the device name
is the correct alias. This isn't always the case. I have multiple config files
for various wireless locations I frequent, and all of them use the same base
device.

It's an interesting idea, and I'm sure it works well in your controlled
environment. But I don't think it's appropriate, as-is, for integration into
net-snmp. If you can find a more reliable way to determine the alias, I will
re-consider it.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to