Re: enum registration
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
>>>>> On Sun, 28 Dec 2008 13:47:47 +0200, "Nikos Balkanas" <[email protected]> said: NB> I am registering an enum scalar, but I don't know how to restrict NB> snmpset just to the enum values: You'll need to implement a subhandler and pass that into your registration function instead of the NULL. And then in that, check if you're processing a SET and force an error if it's out of bounds. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------------ _______________________________________________ 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