Re: val_len when returning oid

Kristoff Bonne <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,


Dave Shield schreef:
>> I have a small question concerning the value returned in "val_len" when
>> returning a variable of type "oid".
> "val_len" is always the size of the value being returned in "val".
> Expressed in bytes.
(...)

>> Is this relation of "size = var_val_len / 4" something that is fixed and
>> the same on all platforms?
>    size = var_val_len / sizeof(oid)
> would be safer.

Make sence once it gets explained. :-)



Thanks!




> Dave
Cheerio! Kr. Bonne.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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.