Re: obtaining client ip address

th exterit <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks but that hasn't worked, damn.

When a trap is recieved, I cast the corresponding pdu->transport_data to a
sockaddr_in like you said and the address I get is "2.0.11.184" and it never
changes.  I find it remarkable that this is proving to be so difficult.
Should I post on the coders mailing list?  Will someone be able to tell me
straight away where I should look?

On Wed, Feb 16, 2011 at 11:29 AM, Mishustin Kirill
<[email protected]>wrote:

> Hello.
>
>        When I needed to extract manager's address during GET-request
> processing in agent, I used netsnmp_pdu->transport_data. Just cast it to
> pointer to struct sockaddr_in. Works fine for me.
>        But something tells me that this is a dirty trick.
>
> Kirill.
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

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