> is there api in net-snmp which can used to check if the oid is between > two oid's?
if (( snmp_oid_compare( target_oid, target_oid_len, lowerB_oid, lowerB_oid_len) > 0 ) && ( snmp_oid_compare( target_oid, target_oid_len, upperB_oid, upperB_oid_len) < 0 )) { printf("target lies strictly within the desired range\n"); } Replace ">" and "<" with ">=" and "<=" if you want to include the boundary OIDs as well. Dave ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users