On 24 Feb 2010 at 13:17, Gopu Krishnan wrote: > 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.
Sorry, I'm not good in kernel network hacking, but if you can get it in user-lang through getsockname() and getpeername(), it must be possible in kernel-land as well. Maybe some network kernel hacker can help you. Regards, Ulrich -- 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.
