Re: enum registration
"Nikos Balkanas" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <001701c96b76$817a7910$02b2a8c0@tardis> |
I presume then that there is no register_enum. Correct? BR, Nikos ----- Original Message ----- From: "Wes Hardaker" <[email protected]> To: "Nikos Balkanas" <[email protected]> Cc: "Wes Hardaker" <[email protected]>; <[email protected]> Sent: Wednesday, December 31, 2008 8:28 PM Subject: Re: enum registration >>>>>> On Wed, 31 Dec 2008 20:26:52 +0200, "Nikos Balkanas" >>>>>> <[email protected]> said: > > NB> net-snmp automatically does type checking according to the > NB> MIB. I.e. it will reject strings if the mib says integer. > > The manager code in net-snmp automatically dose type checking (unless > you turn it off). The agent code, however, doesn't. Although some > mib2c templates do auto-produce code that does the type checking. The > default register_int utility you were using does *not* check incoming > values for legal range. > -- > 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