Thanks Ulrich,

Could you please give me a detailed info on how to retrieve the initiator
IP, target IP, initiator TCP port and target TCP port from the struct sock.

I would like to know about the kernel api for this.
I am not sure if we can use inet_sk(), to get the saddr and daddr. If so
please give me more info on this.

Regards
Gopal.

On Wed, Feb 24, 2010 at 12:37 PM, Ulrich Windl <
[email protected]> wrote:

> On 23 Feb 2010 at 16:55, Gopu Krishnan wrote:
>
> > Is it possible to retrieve the IP address from struct sock.
> >
>
> AFAIK, a socket address is a network address plus a port (maybe even
> two of each in the TCP case). So the answer should be: YES
>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<open-iscsi%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/open-iscsi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to