[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100408142722.GA25392@gondor.apana.org.au>
Date: Thu, 8 Apr 2010 22:27:22 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: dhcp client packet sniffing...
On Thu, Apr 08, 2010 at 07:47:38PM +0800, Herbert Xu wrote:
>
> The main problem is that it needs to be able to receive packets
> destined to an address which is not yet a local address. IOW,
> it needs to be able to bypass the routing table and receive
> non-local traffic.
Oh and if anybody is doing any user-space hacking, this is what you
could do: AF_PACKET is only necessary when you're waiting for a
response from the server. So you could close the socket after a
lease has been acquired, and reopen it the next time you need
to communicate with a server.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists