Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2005 20:26:12 +0100 (CET)
From:      Goran Gajic <ggajic@mail.sbb.co.yu>
To:        freebsd-ports@www.freebsd.org
Subject:   ports/net-mgmt/docsis
Message-ID:  <Pine.BSF.4.62.0502092021050.93495@mail.sbb.co.yu>

next in thread | raw e-mail | index | archive | help


Hi,

Port supplied is old (0.8.2 I think) and doesn't handle mibs properly at 
least on amd64  architecture. I don't know who is in charge and who is 
maintanier, but
1. there is new version 0.9.2 (at docsis.sourceforge.net)
2. new version compiled on amd64 (FBSD 5.3) has same problem.
(produces incorect docsis files if SnmpMib is supplied).
Here is patch that solves problem:

--- docsis-0.9.2.orig/src/docsis_snmp.c Wed Jun  2 19:41:17 2004
+++ docsis-0.9.2/src/docsis_snmp.c      Wed Feb  9 20:20:00 2005
@@ -681,7 +681,7 @@
      switch (var_val_type) {
      case ASN_INTEGER:
          data = asn_build_int(data, listlength, var_val_type,
-                             (long *) var_val, var_val_len);
+                             (long *) var_val, sizeof(var_val_len));
          break;
      case ASN_GAUGE:
      case ASN_COUNTER:



Regards,
Goran Gajic



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.62.0502092021050.93495>