Re: net-snmp fails to create entries with a zero in the OID

2013-07-11 Thread zhuyj
Hi, If I fix all the problems, do you want to merge this patch into master? zhuyj On 07/11/2013 05:29 PM, zhuyj wrote: > Hi, > something is wrong with these modifications. The root cause is that > strdup handles string as normal string. We should rewrite strdup > function. > > @@ -325,7 +326,8

Re: [RfC] Agent MIBs: IPv6

2013-07-11 Thread Alexander Kalashnikov
I'm not sure where should I get those patches. I've installed net-snmp from ports. Below is what I'm getting: root@iris:/root # snmpwalk -v2c -c public 192.168.255.1 | grep ipAddressPrefix HOST-RESOURCES-MIB::hrSWRunParameters.74896 = STRING: "ipAddressPrefix" root@iris:/root # pkg_info | grep

Re: [RfC] Agent MIBs: IPv6

2013-07-11 Thread Niels Baggesen
Den 09-07-2013 00:02, Alexander Kalashnikov skrev: > Thank you for pointing me out. > I was speaking about how to get IPv6 address list from all interfaces by > only using SNMP. Using the current V5-7-patches or master branch, on FreeBSD 9: > $ snmpwalk nba-fbsd9 ipAddressPrefix > IP-MIB::ipAddre

Re: net-snmp fails to create entries with a zero in the OID

2013-07-11 Thread zhuyj
Hi, Magnus && Niels Thanks for your help! I am testing your patch. This patch can solve the most problems. But Ihave a question, is this a bug? I mean that '0' in snmpAdminString is a bug, or not? Would you like to discuss this with me? zhuyj On 07/10/2013 04:53 PM, Magnus Fromreide wrote: > On

Re: net-snmp fails to create entries with a zero in the OID

2013-07-11 Thread zhuyj
Hi, something is wrong with these modifications. The root cause is that strdup handles string as normal string. We should rewrite strdup function. @@ -325,7 +326,8 @@ notifyTable_register_notifications(int major, int minor, return 0; } ptr = snmpTargetAddrTable_create(); -

log message when authentication failed

2013-07-11 Thread Kuroishi Mitsuo
Hi. I want to add the source ip address to the log when authentication failed. In more concrete terms, the 2480th line in the usm_process_in_msg() function in snmpusm.c outputs the log message like below. # I'm using the net-snmp-5.6.1.1 on NetBSD. 2260 int 2261 usm_process_in_msg(int m