Re: Network Manager reason codes
- From: Byte Soup <bytesoup gmail com>
- To: jklimes redhat com
- Cc: networkmanager-list gnome org
- Subject: Re: Network Manager reason codes
- Date: Thu, 10 Feb 2011 21:42:49 +0000
On 10 February 2011 13:52, Jirka Klimes
<jklimes redhat com> wrote:
On Thursday 10 of February 2011 14:20:12 Byte Soup wrote:
> Hi All,
>
> I was wondering about the reason codes Im seeing in my /var/log/syslog, for
> example:
>
> Feb 10 13:15:57 Homer NetworkManager: <info> (eth1): supplicant connection
> state: associating -> disconnected
> Feb 10 13:15:59 Homer NetworkManager: <info> (eth1): supplicant connection
> state: disconnected -> scanning
> Feb 10 13:16:11 Homer NetworkManager: <info> (eth1): supplicant connection
> state: scanning -> disconnected
> Feb 10 13:16:13 Homer NetworkManager: <info> (eth1): device state change:
> 8 -> 3 (reason 11)
> Feb 10 13:16:13 Homer NetworkManager: <info> (eth1): deactivating device
> (reason: 11).
>
> Is there a reference for the reason codes? Also Im working in a location
> where there are a number of different access points for the same network.
> Can I configure network manager to just associated to one MAC address,
> because it seems to be hopping from one to another and then subsequently my
> VPN connection drops
>
> Thanks
>
> -Mark
You can find the reason codes in
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/NetworkManager.h?id=2dbaab2221c092e1cb1855b14419964b4b8a04fc#n235
Sorry, I dont really understand the code that well, can I assume that the "enum" means we take each line as the next reason code? (see my comments below)
typedef enum {
/* No reason given */
NM_DEVICE_STATE_REASON_NONE = 0,
/* Unknown error */
NM_DEVICE_STATE_REASON_UNKNOWN, <<-- reason code 1?
/* Device is now managed */
NM_DEVICE_STATE_REASON_NOW_MANAGED, <<-- reason code 2?
Thanks
If you want to use just one AP, you can "lock" a connection to it via BSSID
field in nm-connection-editor.
right-click on nm-applet -> "Edit Connections..." ->click to "Wireless tab" ->
find your connection -> click "Edit..." -> on "Wireless tab" add MAC address of
your AP to BSSID edit field and save the connection.
Jirka
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]