snmp - How to assign a NULL value to an OID? -


i have make code portable work on 2 different devices length of oid different 1 byte. therefore reusing same struct send oids.

for device #1 have

  mib[0]=0x2b   mib[1]=0x06   mib[2]=0x01   mib[3]=0x02   mib[4]=0x01   mib[5]=0x02       mib[6]=0x02   mib[7]=0x01   mib[8]=0x08   mib[9]=0xa0   mib[10]=0x00 

for device #2 have

  mib[0]=0x2b   mib[1]=0x06   mib[2]=0x01   mib[3]=0x02   mib[4]=0x01   mib[5]=0x02       mib[6]=0x02   mib[7]=0x01   mib[8]=0x08   mib[9]=0x01   mib[10]=??? 

how assign mib[10] null, oid sent 1.3.6.1.2.1.8.1 instead of 1.3.6.1.2.1.8.1.0 sending mib[10] = 0x00?

there no representation end-of-oid in data; length encoded in asn.1 field used transfer oid, , field needs replicated along oid (especially using serialized form anyway).


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -