Re: SNMPSET illusion?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2008/7/24 Raghavendra Prasad <[email protected]>: > Here is my code > > ret = netsnmp_check_vb_int_range( requests->requestvb, 1, 2); > if ( ret != SNMP_ERR_NOERROR ) > netsnmp_request_set_error(requests, SNMP_ERR_WRONGVALUE); netsnmp_check_vb_int_range() will return the appropriate error value for any given assignment. Just use that: ret = netsnmp_check_vb_int_range( requests->requestvb, 1, 2); if ( ret != SNMP_ERR_NOERROR ) netsnmp_request_set_error(requests, ret); That will handle wrongType, wrongSize and wrongValue errors. Dave ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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