RE: datatype for IPADDRESS

Tanisha Kashyap <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <08A2197FCF31F642988F149222F8B88D0FEAB92000@GUREXMB01.ASIAN.AD.ARICENT.COM>
All I can gather is that it is treated as an octet string of 4 bytes.

"No task is so humble that it does not offer an outlet for individuality"


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Tuesday, April 14, 2009 4:46 PM
To: Tanisha Kashyap
Cc: [email protected]
Subject: Re: datatype for IPADDRESS

2009/4/14 Tanisha Kashyap <[email protected]>:

> I don't know how to edit the following:
> case MODE_GET:
>             snmp_set_var_typed_value(requests->requestvb,
>                   ASN_IPADDRESS,
>                  (u_char *) ???, ???);

See the file 'agent/mibgroup/mibII/udpTable.c'
which includes a similar MIB object.

In general this ought to be the first thing you try
whenever you're stuck. Look for something similar
in the Net-SNMP source code, and see if that provides
sufficient information to get you started again.

Dave

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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.