[ First - *please* don't mail me directly unless you want private,
       *paid* consulting services.  Keep discussions on the list, where
       others can both learn and offer advice.  Thanks.                 ]

On Fri, 06 Jul 2007 16:34:26 -0000 jpipitone wrote:
J> I am also having the same problem - I don't believe there is an IP
J> address conflict - I've included the results of my ifconfig -a - can
J> you help at all?  I would appreciate any insights you may have:

The problem is the IPv6 addresses on the virtual interfaces... Try this patch:

Index: agent/mibgroup/ip-mib/data_access/ipaddress_common.c
===================================================================
--- agent/mibgroup/ip-mib/data_access/ipaddress_common.c        (revision 16589)
+++ agent/mibgroup/ip-mib/data_access/ipaddress_common.c        (working copy)
@@ -409,6 +409,7 @@
 static int _access_ipaddress_entry_compare_addr(const void *lhs,
                                                 const void *rhs)
 {
+    int rc;
     const netsnmp_ipaddress_entry *lh = (const netsnmp_ipaddress_entry *)lhs;
     const netsnmp_ipaddress_entry *rh = (const netsnmp_ipaddress_entry *)rhs;

@@ -426,5 +427,15 @@
     /*
      * length equal, compare address
      */
-    return memcmp(lh->ia_address, rh->ia_address, lh->ia_address_len);
+    rc = memcmp(lh->ia_address, rh->ia_address, lh->ia_address_len);
+    if (rc)
+        return rc;
+
+    /*
+     * compare interface
+     */
+    if (lh->if_index < rh->if_index)
+        return -1;
+    else if (lh->if_index > rh->if_index)
+        return 1;
 }

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to