Seems that the /proc/net/if_inet6 syntax has changed recently. 

I thought that following would fix the problem 

-- net-snmp-5.3/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c.old
2005-10-31 05:27:37.000000000 +0100
+++ net-snmp-5.3/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
2006-01-30 09:57:42.000000000 +0100
@@ -219,7 +219,7 @@
          * F: flags (see include/linux/rtnetlink.h,
net/ipv6/addrconf.c)
          * I: interface
          */
-        rc = sscanf(line, "%32s %02x %02x %02x %02x %8s\n",
+        rc = sscanf(line, "%39s %02x %02x %02x %02x %8s\n",
                     addr, &if_index, &pfx_len, &scope, &flags,
if_name);
         if( 6 != rc ) {
             snmp_log(LOG_ERR, PROCFILE " data format error (%d!=6),
line ==|%s|\n",


but still, I'm getting 
error parsing '', skipping
error parsing 'þ€', skipping
error parsing '', skipping
error parsing 'þ€', skipping
error parsing '', skipping
error parsing 'þ€', skipping

I wonder why?

On Mon, 2006-01-30 at 09:42 +0100, Radek Vokál wrote:
> Hmm, I wonder why this started to happen. It's net-snmp-5.3 on my Fedora
> Core 5 system (kernel-2.6.15-1.1854_FC5smp)
> 
> # snmpd -Lo -f
> /proc/net/if_inet6 data format error (2!=6), line ==|
> 0000:0000:0000:0000:0000:0000:0000:0001 01 80 10 80       lo
> |
> /proc/net/if_inet6 data format error (2!=6), line ==|
> fe80:0000:0000:0000:020f:1fff:fe78:0d18 02 40 20 80     eth0
> |
> /proc/net/if_inet6 data format error (2!=6), line ==|
> 0000:0000:0000:0000:0000:0000:0000:0001 01 80 10 80       lo
> |
> /proc/net/if_inet6 data format error (2!=6), line ==|
> fe80:0000:0000:0000:020f:1fff:fe78:0d18 02 40 20 80     eth0
> |
> /proc/net/if_inet6 data format error (2!=6), line ==|
> 0000:0000:0000:0000:0000:0000:0000:0001 01 80 10 80       lo
> |
> /proc/net/if_inet6 data format error (2!=6), line ==|
> fe80:0000:0000:0000:020f:1fff:fe78:0d18 02 40 20 80     eth0
> |
> 
> A clue? 
> 
-- 
Radek Vokál <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to