Can index value be negative number?

"Zheng, Wenjie (Barclay)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A8F658F27E2A06459025251CA0A4600606716B4766@FRMRSSXCHMBSA2X.dc-m.alcatel-lucent.com>

Dear All,



I got a question: can index value be a negative number?

>From the types.h file

#ifndef MAX_SUBID               /* temporary - duplicate definition protection \*/

#ifndef EIGHTBIT_SUBIDS

typedef u_long  oid;

#define MAX_SUBID   0xFFFFFFFF

#else

typedef u_char  oid;

#define MAX_SUBID   0xFF

#endif

#endif



Seems it can only be u_long,  which is unsigned long?



Thanks,

Barclay

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.