ports/net-mgmt/docsis
Goran Gajic
ggajic at mail.sbb.co.yu
Wed Feb 9 11:26:16 PST 2005
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
More information about the freebsd-ports
mailing list