[newbie] ASN1 types mapping to c

LiWei Sun <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
i, I am trying to write a mib module of my own. I don't know how to pass an
ip address value to "snmp_set_var_typed_value" function. I got a string
value like "192.168.1.1", is it right to simply cast it to u_char* type, the
ASN1 type defined in mib is "IpAddress"? How to specify the byte order ?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
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.