[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMGYKAfWNm2d5n_3Tnxbwo2C1Ms+gNLp4C35BHmy-+Xwat0b+w@mail.gmail.com>
Date: Mon, 18 Jul 2016 12:09:36 -0700
From: Peter Chen <peter.feifan.chen@...il.com>
To: netdev@...r.kernel.org
Subject: Getting IP address and port of a file descriptor
Hi,
I was wondering, if I was in the kernel, and I intercepted a system
call such as read(). Would I be able, from the fd, determine the
whether the fd is (1) a network socket? (2) the IP address and port of
this socket? What are the kernel data structures and functions that
can get these information for me in the kernel? Thanks.
Peter
Powered by blists - more mailing lists