[tkined] Is `BITS' a good datatype?

Vincent Qing Yin (vyin@cs.ubc.ca)
Mon, 6 Jul 1998 13:27:56 -0700 (PDT)

Hi,

I'm implementing an SNMP agent on scotty for RFC2006 (Mobile IP.)
I try to implement the following variable:

mipEntities OBJECT-TYPE
SYNTAX BITS { <<================== datatype
mobileNode(0),
foreignAgent(1),
homeAgent(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object describes which Mobile IP entities are
supported by this managed entity. The entity may
support more than one Mobile IP entities. For example,
the entity supports both Foreign Agent (FA) and Home
Agent (HA). Therefore, bit 1 and bit 2 are set to 1
for this object."
::= { mipSystem 1 }

The scotty agent should read in a value "0" (or "0x0" from a text file
to assign it to the instance variable. When issuing a GET from the
manager, I get the following:
% $s get mipEntities.0
genErr 0 {1.3.6.1.2.1.44.1.1.1.0 NULL {}}

On the agent side, I get
% unknown asn1 type 0x00
(snmp send reply)

Does that mean the agent doesn't support `BITS' datatype, or does
it mean I used the wrong representation ("0" or "0x00") for BITS?

-- 

Q Vincent Yin | Repeat vyin@cs.ubc.ca | delete(next->bug); (604) 876-9096 (H) | Until 0 = 1;

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.