Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2005 10:48:54 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Forrest Aldrich <forrie@forrie.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: dhclient problems on FreeBSD-6
Message-ID:  <20051024174854.GB7433@odin.ac.hmc.edu>
In-Reply-To: <4357D560.6010509@forrie.com>
References:  <4357D560.6010509@forrie.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--yEPQxsgoJgBvi8ip
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 20, 2005 at 01:35:28PM -0400, Forrest Aldrich wrote:
> I'm running:  6.0-BETA5 #0: Sat Oct  8 14:41:44 EDT 2005
>=20
> Recently, I posted a quesiton about dhclient becoming "wedged" in the=20
> mornings, it would raise the system load and basically hang.   A simple=
=20
> kill -HUP and restart would solve the problem.
>=20
> The only indication I'm seeing in the logs is:
>=20
>    Oct 20 13:25:26 forrie dhclient[11061]: 5 bad IP checksums seen in 5
>    packets
>=20
>=20
> My provider is Comcast.   Does the above message indicate something=20
> "bad" being sent from their DHCP servers or am I hitting a known bug.
>=20
> The dhclient I'm using is whatever comes with the stock system build.

Sounds like the bpf input is buffer is getting mangled.  I find that
unlikely outside a hardware problem at this point, but it's possible
there's some sort of bpf bug that is triggered by your system.  The most
useful thing you could do is try to get a version of dhclient with debug
symbols to fail and find out where it's actually looping.

http://lists.freebsd.org/pipermail/freebsd-current/2005-August/054224.html

Also, if you haven't done so already try the following patch.  If it
fixes it, there's a bpf bug.

-- Brooks

Index: bpf.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sbin/dhclient/bpf.c,v
retrieving revision 1.6
diff -u -p -r1.6 bpf.c
--- bpf.c	23 Aug 2005 23:59:55 -0000	1.6
+++ bpf.c	24 Oct 2005 17:45:33 -0000
@@ -288,7 +288,7 @@ receive_packet(struct interface_info *in
 			if (length <=3D 0)
 				return (length);
 			interface->rbuf_offset =3D 0;
-			interface->rbuf_len =3D length;
+			interface->rbuf_len =3D BPF_WORDALIGN(length);
 		}
=20
 		/*

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--yEPQxsgoJgBvi8ip
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDXR6FXY6L6fI4GtQRAtJIAJ9AyfxVGjTNdmG39F2HS8zWqFsfCACgo9Bz
iZPJZddDMB00sLvAYa+MVJg=
=FxO3
-----END PGP SIGNATURE-----

--yEPQxsgoJgBvi8ip--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051024174854.GB7433>