On Wed, 2006-16-08 at 14:08 +0200, Thomas Graf wrote:
> * jamal <[EMAIL PROTECTED]> 2006-08-16 08:04
> > current->pid i think is coming out to be a bad idea. Thomas' patches
> > revert it out. Again this has everything to do with the original idea
> > what maps to pid now changing to socketid.
> 
> It probably developed from autobind using current->tid.

In one conversation with Alexey he told me there was some inspiration
from pfkey in the semantics of it i.e processid. Obviously with many
sockets on the same process etc, that assumption is no longer valid. 

On Wed, 2006-16-08 at 22:08 +1000, Herbert Xu wrote: 
> On Wed, Aug 16, 2006 at 08:04:24AM -0400, jamal wrote:
> > 
> > What do you think of the idea of infact rewriting the pid to be that of
> > the socket id?
> 
> Rewriting it with the netlink socket address? That's fine by me as
> long as there is a clear 1-to-1 relationship between the request
> and the notification.

you would have to call getpeername() to get a correct 1-1 mapping as is 
today when in doubt.
What i was suggesting is notifications using the pid that would id the socket 
and
would therefore require a getpeername() which identify the real socket it came 
from; if you are fine with what Thomas is doing, then this unnecessary since i 
was
suggesting it as a compromise for consistency you pointed was lacking.

cheers,
jamal

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to