Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2008 12:40:03 -0600 (CST)
From:      "Sean C. Farley" <scf@FreeBSD.org>
To:        Hugo Silva <hugo@barafranca.com>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: AMD64 vs i386, ifstat and bsnmp
Message-ID:  <alpine.BSF.1.00.0802131226270.9796@thor.farley.org>
In-Reply-To: <47B334CD.1000200@barafranca.com>
References:  <200802131453.m1DErqO8071630@lava.sentex.ca> <47B334CD.1000200@barafranca.com>

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.

--56599777-54586912-1202928003=:9796
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII

On Wed, 13 Feb 2008, Hugo Silva wrote:

> Mike Tancsa wrote:
>> Couple of little things I noticed with a new RELENG_7 AMD64 box (as of 
>> yesterday)
>> 
>> ifstat from the ports cannot seem to find interfaces for some reason ?  It 
>> works fine on i386

*snip*

Try this patch.  The type to the fourth argument to sysctl is wrong
(int) and should be size_t.

Sean
-- 
scf@FreeBSD.org
--56599777-54586912-1202928003=:9796
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=ifstat.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.BSF.1.00.0802131240030.9796@thor.farley.org>
Content-Description: 
Content-Disposition: attachment; filename=ifstat.patch

LS0tIGRyaXZlcnMuYy5vcmlnCTIwMDMtMTEtMjEgMTk6Mjc6NTEuMDAwMDAw
MDAwIC0wNjAwDQorKysgZHJpdmVycy5jCTIwMDgtMDItMTMgMTI6MjU6MTQu
MDAwMDAwMDAwIC0wNjAwDQpAQCAtNTkzLDcgKzU5Myw4IEBADQogICBpbnQg
aWZjb3VudFtdID0gew0KICAgICBDVExfTkVULCBQRl9MSU5LLCBORVRMSU5L
X0dFTkVSSUMsIElGTUlCX1NZU1RFTSwgSUZNSUJfSUZDT1VOVA0KICAgfTsN
Ci0gIGludCBjb3VudCwgc2l6ZTsNCisgIGludCBjb3VudDsNCisgIHNpemVf
dCBzaXplOw0KICAgDQogICBzaXplID0gc2l6ZW9mKGNvdW50KTsNCiAgIGlm
IChzeXNjdGwoaWZjb3VudCwgc2l6ZW9mKGlmY291bnQpIC8gc2l6ZW9mKGlu
dCksICZjb3VudCwgJnNpemUsIE5VTEwsIDApIDwgMCkgew0KQEAgLTYwNyw3
ICs2MDgsNyBAQA0KICAgaW50IGlmaW5mb1tdID0gew0KICAgICBDVExfTkVU
LCBQRl9MSU5LLCBORVRMSU5LX0dFTkVSSUMsIElGTUlCX0lGREFUQSwgaW5k
ZXgsIElGREFUQV9HRU5FUkFMDQogICB9Ow0KLSAgaW50IHNpemUgPSBzaXpl
b2YoKmlmbWQpOw0KKyAgc2l6ZV90IHNpemUgPSBzaXplb2YoKmlmbWQpOw0K
IA0KICAgaWYgKHN5c2N0bChpZmluZm8sIHNpemVvZihpZmluZm8pIC8gc2l6
ZW9mKGludCksIGlmbWQsICZzaXplLCBOVUxMLCAwKSA8IDApDQogICAgIHJl
dHVybiAwOw0K

--56599777-54586912-1202928003=:9796--



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