Re: net.link.log_link_state_change broken?

From: Paul B Mahol <onemda_at_gmail.com>
Date: Sun, 21 Nov 2010 10:47:14 +0000
On 11/21/10, Paul B Mahol <onemda_at_gmail.com> wrote:
> On 11/19/10, Paul B Mahol <onemda_at_gmail.com> wrote:
>> On 11/18/10, Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net> wrote:
>>> On Tue, 2 Nov 2010, Paul B Mahol wrote:
>>>
>>> Hi,
>>>
>>>> It appears we do not log such events anymore (at least with wlan
>>>> devices) in console.
>>>>
>>>> I set this sysctl to 0 via sysctl.conf, if I set it to 1, nothing will
>>>> change.
>>>>
>>>> Because I had loging disabled for very long time I encountered this
>>>> problem just now.
>>>
>>> not sure.  Might be, might not be.  Have you further looked into this?
>>>
>>> I at least see:
>>> ./net80211/ieee80211_freebsd.c:         if_link_state_change(ifp,
>>> LINK_STATE_UP);
>>> ./net80211/ieee80211_freebsd.c:         if_link_state_change(ifp,
>>> LINK_STATE_DOWN);
>>
>> That part is not problematic, klog part is.
>>
>> Messages of link state changes are not available in console but are
>> available in klog and in console once you open it with cat.
>>
>> Reading comment it appears that logic is inverted in code.
>
> kern.consmute=0 caused link state change to never appear (even in dmesg)
> ...
^kern.consmute=1
Received on Sun Nov 21 2010 - 09:47:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC