Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Nov 2002 20:25:38 -0800 (PST)
From:      Kelly Yancey <kbyanc@posi.net>
To:        Giorgos Keramidas <keramida@freebsd.org>
Cc:        freebsd-current@freebsd.org, <kbyanc@freebsd.org>
Subject:   Re: Can't resolve hosts via dns on the command line with latest -current
Message-ID:  <20021104201842.W51042-200000@gateway.posi.net>
In-Reply-To: <20021105031705.GA573@gray.sea.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-899361772-1036470338=:51042
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 5 Nov 2002, Giorgos Keramidas wrote:

> On 2002-11-04 18:38, Kelly Yancey <kbyanc@posi.net> wrote:
> > Thanks for the info.  Are you sure that you only reverted the one delta?
>
> Yes.  I just recompiled the kernel from -rHEAD and started logging
> things while I connected to my dialup provider.  Apparently lo0 does
> have the 127.0.0.1 address *and* the LOOPBACK flag but somehow fails.
>
> When (near the end of the following log) I back only this change out,
> the problems go away :/
>

  Thanks for the great trace and your patience.  I believe I found the root of
the problem.  Could you please try the attached patch?  I'm afraid that
if I hadn't gotten thown off this morning be my lo0 lacking a
127.0.0.1 address I probably would have found it much, much sooner
(it's pretty obvious in hindsight).  At the very least, I also caught a
couple of pieces of code that are manipulating the socket buffer behind
sballoc() and sbfree()'s back so I've modified them to update the sb_cc
counter directly also.
  Let me know if this fixes things for you.  Thanks,

  Kelly

--
Kelly Yancey -- kbyanc@{posi.net,FreeBSD.org}
"Democracy is a device that insures we shall be governed no better than we
 deserve." -- George Bernard Shaw

--0-899361772-1036470338=:51042
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kqueue-fix.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <20021104202538.W51042@gateway.posi.net>
Content-Description: 
Content-Disposition: attachment; filename="kqueue-fix.diff"

SW5kZXg6IGtlcm4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mi5jCTIgTm92IDIwMDIgMDU6MTQ6MzAgLTAwMDAJ
MS4xMDUNCisrKyBrZXJuL3VpcGNfc29ja2V0Mi5jCTUgTm92IDIwMDIgMDQ6
MTk6MDUgLTAwMDANCkBAIC03MDUsNiArNzA1LDggQEAgc2Jjb21wcmVzcyhz
YiwgbSwgbikNCiAJCQkgICAgKHVuc2lnbmVkKW0tPm1fbGVuKTsNCiAJCQlu
LT5tX2xlbiArPSBtLT5tX2xlbjsNCiAJCQlzYi0+c2JfY2MgKz0gbS0+bV9s
ZW47DQorCQkJaWYgKG0tPm1fdHlwZSAhPSBNVF9EQVRBKQ0KKwkJCQlzYi0+
c2JfY3RsICs9IG0tPm1fbGVuOw0KIAkJCW0gPSBtX2ZyZWUobSk7DQogCQkJ
Y29udGludWU7DQogCQl9DQpAQCAtNzc0LDYgKzc3Niw4IEBAIHNiZHJvcChz
YiwgbGVuKQ0KIAkJCW0tPm1fbGVuIC09IGxlbjsNCiAJCQltLT5tX2RhdGEg
Kz0gbGVuOw0KIAkJCXNiLT5zYl9jYyAtPSBsZW47DQorCQkJaWYgKG0tPm1f
dHlwZSAhPSBNVF9EQVRBKQ0KKwkJCQlzYi0+c2JfY3RsIC09IGxlbjsNCiAJ
CQlicmVhazsNCiAJCX0NCiAJCWxlbiAtPSBtLT5tX2xlbjsNCg==
--0-899361772-1036470338=:51042--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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