Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: msk dhcpcd tcpdump problem



On Fri, Jul 30, 2010 at 01:23:31PM +0100, Patrick Welche wrote:
> On NetBSD-5.99.37/i386, start with msk0 down on a 100 MBit link.
> 
>       dhcpcd msk0
> 
> gets brings up the interface and grabs a IP4 address. All OK.
> 
>       tcpdump -ni msk0
> 
> somehow causes dhcpcd to remove the IP4 address (so ifconfig shows no inet
> line, and status is "no network"), and tcpdump shows a new dhcp request.
> 
> How are dhcpcd and tcpdump related?

I would setting promiscuous mode on the interface somehow notifies
userland and dhcpcd retries getting an address.  Can't say if it is a
bug or not that dhcpcd renews its lease, but it might be the driver that
is at fault there.

Try using adding -p to the list of options of tcpdump, if you can afford
it.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpUOci16pwPL.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index