Re: knowing file descriptor in kernel level..

Paolo Alexis Falcone <[email protected]> Fri, 25 Nov 2005 21:21:37 +0800
Newsgroups gmane.org.user-groups.linux.philippine.newbies
Message-ID <[email protected]>
On 11/25/05, shahnawaz S.P <[email protected]> wrote:
> Hi,
>
> When a socket is created in user space, it returns
> file descriptor.My query is Is there any way to know
> this fd from the structure sock or from the inode
> ponting to this socket from the "kernel" level.
> Actually I am trying to find :
> When a packet comes to TCP/Ip stack I want to find to
> which sesson t belongs.If I know the file descriptor
> of that connection from the packet's sock structure or
> somehow, I can compare with the file descriptor
> returned from socket created in user space.
> Is there any better method to do this?? Hope kernel
> gurus will help me.

Have you checked this out:

http://www.cise.ufl.edu/~mfoster/research/kernel/LJArticle.htm

--
Paolo Alexis Falcone
[email protected]

_________________________________________________________
Philippine Linux Users' Group (PLUG) Newbie Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph