From: <no...@so...> - 2001-07-26 09:23:20
|
Bugs item #438551, was opened at 2001-07-04 07:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=438551&group_id=12694 Category: agent Group: None >Status: Closed Resolution: Fixed Priority: 1 Submitted By: Nobody/Anonymous (nobody) Assigned to: John Naylon (jbpn) Summary: IFSPECIFIC OID report one extra 0 Initial Comment: When walking the mibII interfaces table, the content of the OID for ifSpecific returns 0.0.0 while the RFC mention that 0.0 MUST be returned. Investigation of interfaces.c reveal that the length calculation is wrong. interfaces.c line 925-927 case IFSPECIFIC: *var_len = nullOidLen; return (u_char *) nullOid; should be changed to case IFSPECIFIC: *var_len = nullOidLen*sizeof(nullOid[0]); return (u_char *) nullOid; This will make the content of var_len to 8 instead of 2 and will make the report of ifSpecific OID to be 0.0 instead of 0.0.0 which was wrong. I've spotted similar issue in other place where OID are returned. - Yannick Koehler ---------------------------------------------------------------------- Comment By: John Naylon (jbpn) Date: 2001-07-24 09:10 Message: Logged In: YES user_id=93926 I think this is fixed in 4.2.1 and the current CVS tree. Niels fixed it in revision 1.189 of agent/snmp_vars.c back in December. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=438551&group_id=12694 |