public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joost Remijn <remijnj@d20.nl>
To: Arjan van de Ven <arjan@infradead.org>
Cc: "Lorenzo Hernández García-Hierro" <lorenzo@gnu.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch 1/1] /proc/$$/ipaddr and per-task networking bits
Date: Thu, 10 Mar 2005 17:36:46 +0100	[thread overview]
Message-ID: <1110472606.5589.20.camel@frost> (raw)
In-Reply-To: <1110470935.6291.105.camel@laptopd505.fenrus.org>

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On Thu, 2005-03-10 at 17:08 +0100, Arjan van de Ven wrote:
> On Thu, 2005-03-10 at 17:00 +0100, Lorenzo Hernández García-Hierro
> wrote: it tries to fill the
> > ipaddr member of the task_struct structure with the IP address
> > associated to the user running @current task/process,if available.
> 
> but... a use doesn't hane an IP. a host does.

I'm not sure i understand but i've just tried to read the code and it
looks like the IP address is the address of the other end of a socket.

This address is set when a process does accept(). So this user IP we are
talking about would be the remote users host IP (or gateway in case of
NAT). 

I don't think i fully understand the code but it looks like it only
holds the remote IP address of the last accept()-ed connection. 

Joost Remijn

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-03-10 16:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10 14:16 [patch 1/1] /proc/$$/ipaddr and per-task networking bits Lorenzo Hernández García-Hierro
2005-03-10 14:26 ` Arjan van de Ven
2005-03-10 15:28   ` Lorenzo Hernández García-Hierro
2005-03-10 15:38     ` Arjan van de Ven
2005-03-10 16:00       ` Lorenzo Hernández García-Hierro
2005-03-10 16:08         ` Arjan van de Ven
2005-03-10 16:19           ` Paul P Komkoff Jr
2005-03-10 16:36           ` Joost Remijn [this message]
2005-03-11 12:35           ` Coywolf Qi Hunt
2005-03-10 15:22 ` YOSHIFUJI Hideaki / 吉藤英明

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1110472606.5589.20.camel@frost \
    --to=remijnj@d20.nl \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox