connmand settings howto

Patrik Flykt patrik.flykt at linux.intel.com
Wed Nov 7 23:11:09 PST 2012


	Hi,

On Wed, 2012-11-07 at 15:40 +0100, Jan Pohanka wrote:

> I have these two configuration files
> /var/lib/connman/settings
> [global]
> OfflineMode=false
> 
> [WiFi]
> Enable=true
> 
> [Wired]
> Enable=true

Looks ok, even though it is not a configuration file in the common sense
of the word. This one is create by core ConnMan code, there is no
guarantee that it won't change all of a sudden. With that warning, let's
continue.

> /var/lib/connman/wifi.config
> [global]
> Name = Example
> Description = Example network configuration
> 
> [service_apcom]
> Type = wifi
> Name = APCOM
> Passphrase = my_secret

Looks ok.

> connmand[578]: Connection Manager version 1.9

> connmand[578]: src/config.c:__connman_config_init()
> connmand[578]: src/config.c:read_configs()
> connmand[578]: src/config.c:create_config() ident pokus
> connmand[578]: Adding configuration pokus
> connmand[578]: src/config.c:load_config() config 0xa55a8
> connmand[578]: src/storage.c:storage_load() Loading  
> /var/lib/connman/wifi.config
> connmand[578]: src/config.c:is_protected_service() ident apcom
> connmand[578]: Adding service configuration apcom

The config file is read, which is fine.

> connmand[578]: src/rtnl.c:rtnl_message() NEWLINK len 436 type 16 flags  
> 0x0002 seq 0 pid 578
> connmand[578]: src/ipconfig.c:__connman_ipconfig_newlink() index 3
> connmand[578]: wlan0 {create} index 3 type 1 <ETHER>
> connmand[578]: wlan0 {RX} 206 packets 19288 bytes
> connmand[578]: wlan0 {TX} 6 packets 1459 bytes
> connmand[578]: wlan0 {update} flags 36866 <DOWN>
> connmand[578]: wlan0 {newlink} index 3 address 00:25:D3:69:EF:CE mtu 1500
> connmand[578]: wlan0 {newlink} index 3 operstate 2 <DOWN>
> connmand[578]: Adding interface wlan0 [ wifi ]
> connmand[578]: src/technology.c:technology_find() type 3
> connmand[578]: src/detect.c:detect_newlink() type 1 index 3
> connmand[578]: src/device.c:connman_device_create() node 0025d369efce type  
> 2
> connmand[578]: src/device.c:connman_device_create() device 0x9d690
> connmand[578]: src/device.c:connman_device_set_string() device 0x9d690 key  
> Address value 00:25:D3:69:EF:CE
> connmand[578]: src/device.c:connman_device_register() device 0x9d690 name  
> Wireless
> connmand[578]: src/rtnl.c:rtnl_message() NEWLINK len 440 type 16 flags  
> 0x0002 seq 0 pid 578
> connmand[578]: src/ipconfig.c:__connman_ipconfig_newlink() index 4
> connmand[578]: eth0 {create} index 4 type 1 <ETHER>
> connmand[578]: eth0 {update} flags 36866 <DOWN>
> connmand[578]: eth0 {newlink} index 4 address 11:1A:00:9C:40:4A mtu 1500
> connmand[578]: eth0 {newlink} index 4 operstate 2 <DOWN>
> connmand[578]: Adding interface eth0 [ ethernet ]
> connmand[578]: src/technology.c:technology_find() type 2
> connmand[578]: src/detect.c:detect_newlink() type 1 index 4
> connmand[578]: src/device.c:connman_device_create() node 111a009c404a type  
> 1
> connmand[578]: src/device.c:connman_device_create() device 0x9f690
> connmand[578]: src/device.c:connman_device_set_string() device 0x9f690 key  
> Address value 11:1A:00:9C:40:4A
> connmand[578]: src/device.c:connman_device_register() device 0x9f690 name  
> Ethernet
> connmand[578]: src/device.c:connman_device_register() driver 0x8bb70 name  
> ethernet
> connmand[578]: plugins/ethernet.c:ethernet_probe() device 0x9f690
> connmand[578]: src/rtnl.c:connman_rtnl_add_newlink_watch() id 1
> connmand[578]: plugins/ethernet.c:ethernet_newlink() index 4 flags 36866  
> change 0
> connmand[578]: src/technology.c:__connman_technology_add_device() device  
> 0x9f690
> connmand[578]: src/technology.c:technology_get() type 2
> connmand[578]: src/technology.c:technology_find() type 2
> connmand[578]: src/technology.c:technology_load() technology 0x95848
> connmand[578]: src/storage.c:storage_load() Loading  
> /var/lib/connman/settings
> connmand[578]: src/technology.c:technology_get() technology 0x95848
> connmand[578]: src/device.c:__connman_device_enable() device 0x9f690
> connmand[578]: plugins/ethernet.c:ethernet_enable() device 0x9f690
> connmand[578]: plugins/ethernet.c:ethernet_newlink() index 4 flags 36866  
> change 0
> connmand[578]: src/rtnl.c:rtnl_message() buf 0xbe8e685c len 20
> connmand[578]: src/rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002  
> seq 0 pid 578
> connmand[578]: src/rtnl.c:process_response() seq 0
> connmand[578]: src/rtnl.c:send_request() GETADDR len 17 type 22 flags  
> 0x0301 seq 1
> connmand[578]: src/rtnl.c:rtnl_message() buf 0xbe8e685c len 48
> connmand[578]: src/rtnl.c:rtnl_message() NEWADDR len 48 type 20 flags  
> 0x0002 seq 1 pid 578
> connmand[578]: src/ipconfig.c:__connman_ipconfig_newaddr() index 1
> connmand[578]: src/rtnl.c:rtnl_message() buf 0xbe8e685c len 20
> connmand[578]: src/rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002  
> seq 1 pid 578
> connmand[578]: src/rtnl.c:process_response() seq 1
> connmand[578]: src/rtnl.c:send_request() GETROUTE len 17 type 26 flags  
> 0x0301 seq 2
> connmand[578]: src/rtnl.c:rtnl_message() buf 0xbe8e685c len 240
> connmand[578]: src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags  
> 0x0002 seq 2 pid 578
> connmand[578]: src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags  
> 0x0002 seq 2 pid 578
> connmand[578]: src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags  
> 0x0002 seq 2 pid 578
> connmand[578]: src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags  
> 0x0002 seq 2 pid 578
> connmand[578]: src/rtnl.c:rtnl_message() buf 0xbe8e685c len 20
> connmand[578]: src/rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002  
> seq 2 pid 578
> connmand[578]: src/rtnl.c:process_response() seq 2

So far so good, but what happens after this, can you see any WiFi scans
from plugins/wifi.c?

Cheers,

	Patrik





More information about the connman mailing list