Re: network interface state

2008-01-04 Thread Milan Kocian
On Wed, 2007-11-14 at 15:31 -0800, David Miller wrote: > From: Ulrich Drepper <[EMAIL PROTECTED]> > Date: Wed, 14 Nov 2007 12:59:52 -0800 > > > Just FYI, with the current getaddrinfo code it is even more critical to > > get to a point where I can cache network interface information and query > >

Re: network interface state

2007-11-15 Thread jamal
On Thu, 2007-15-11 at 10:11 +0800, Herbert Xu wrote: > We don't make use of that on recvmsg() though although theoretically > user-space is supposed to be ready to handle that too. iproute2 handles that well. Anyone writting netlink apps should program with the thought that a single received data

Re: network interface state

2007-11-14 Thread David Miller
From: Herbert Xu <[EMAIL PROTECTED]> Date: Thu, 15 Nov 2007 10:11:35 +0800 > David Miller <[EMAIL PROTECTED]> wrote: > > > >> BTW, is it possible to send both these requests out before starting to > >> read the results? This would reduce the amount of code quite a bit. > > > > Unfortunately, tha

Re: network interface state

2007-11-14 Thread Herbert Xu
David Miller <[EMAIL PROTECTED]> wrote: > >> BTW, is it possible to send both these requests out before starting to >> read the results? This would reduce the amount of code quite a bit. > > Unfortunately, that won't work. Like datagram protocols, > netlink assumes one message per sendmsg() call

Re: network interface state

2007-11-14 Thread David Miller
From: Ulrich Drepper <[EMAIL PROTECTED]> Date: Wed, 14 Nov 2007 16:12:28 -0800 > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > David Miller wrote: > > Most daemons handle this by listening for events on the netlink > > socket, but I understand how that might not be practical for > > glibc.

Re: network interface state

2007-11-14 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Miller wrote: > Most daemons handle this by listening for events on the netlink > socket, but I understand how that might not be practical for > glibc. Right, this cannot work. I have no inner loop which I can control. I cannot install a liste

Re: network interface state

2007-11-14 Thread David Miller
From: Ulrich Drepper <[EMAIL PROTECTED]> Date: Wed, 14 Nov 2007 12:59:52 -0800 > Just FYI, with the current getaddrinfo code it is even more critical to > get to a point where I can cache network interface information and query > the kernel whether it changed. We now have to read the RTM_GETADDR

network interface state

2007-11-14 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just FYI, with the current getaddrinfo code it is even more critical to get to a point where I can cache network interface information and query the kernel whether it changed. We now have to read the RTM_GETADDR tables for every lookup. It was more l