Zitat von Marcel Holtmann <[email protected]>:

Hi Stephan,

Hi, please add #include <glib.h> to device.h while i have follow error
(with uclibc):

...
In file included from hso.c:28:
../include/connman/device.h:84: error: expected declaration specifiers
or '...' before 'gboolean'

that should be fixed by now in the upstream tree.

i dont see this fix

Also you have your
udhcpc plugin now. However in the long run, I have to send some patches
to the udhcpc guys to extend udhcpc to be used from scripts. It is
missing some essential features that dhclient has.

i have tested, i dont become a ip adress. this is the syslog from connmand -d:

Dec 29 22:22:21 openelec syslog.info syslogd started: BusyBox v1.13.1
Dec 29 22:22:23 openelec daemon.info bluetoothd[989]: Bluetooth daemon
Dec 29 22:22:23 openelec daemon.info bluetoothd[989]: Starting SDP server
Dec 29 22:22:24 openelec daemon.info connmand[1091]: Connection Manager version 0.5 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_storage_init() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:__connman_element_init() conn 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_create() element 0x805a978 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Method Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Address Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Netmask Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Gateway Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Broadcast Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property IPv4.Nameserver Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property WiFi.Security Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_default_properties() property WiFi.Passphrase Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:create_property() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:__connman_device_init() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0x805664c name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: network.c:__connman_network_init() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0x8056700 name network Dec 29 22:22:24 openelec daemon.debug connmand[1091]: agent.c:__connman_agent_init() conn 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: manager.c:__connman_manager_init() conn 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: profile.c:__connman_profile_init() conn 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:__connman_rtnl_init() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: plugin.c:__connman_plugin_init() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_driver_register() driver 0xb7dad300 name bluetooth Dec 29 22:22:24 openelec daemon.debug connmand[1091]: bluetooth.c:bluetooth_connect() connection 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7da7308 name dhclient Dec 29 22:22:24 openelec daemon.debug connmand[1091]: dnsproxy.c:create_listener() Dec 29 22:22:24 openelec daemon.err connmand[1091]: Failed to bind listener socket Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_register() rtnl 0xb7da3450 name ethernet Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_driver_register() driver 0xb7da3430 name ethernet Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_driver_register() driver 0xb7da0768 name hso Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_register() rtnl 0xb7d9eb90 name ipv4-rtnl Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_send_getroute() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:send_request() GETROUTE len 17 type 26 flags 0x0301 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7d9eb48 name ipv4-connection Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7d9eb6c name ipv4-address Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7d99910 name netdev Dec 29 22:22:24 openelec daemon.debug connmand[1091]: resolver.c:connman_resolver_register() resolver 0xb7d979a4 name resolvconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: resolver.c:connman_resolver_register() resolver 0xb7d959ac name resolvfile Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7d93bac name udhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_driver_register() driver 0xb7d90364 name wifi-network Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_driver_register() driver 0xb7d90388 name wifi-device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: supplicant.c:__supplicant_activate() conn 0x8058be0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:__connman_element_start() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_node() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_register() rtnl 0x80567ec name detect Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_send_getlink() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 20 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:process_response() seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:send_request() GETLINK len 17 type 18 flags 0x0301 seq 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 60 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: bluetooth.c:list_adapters_reply() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 236 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 236 type 16 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 772 ifi_index 1 ifi_flags 0x10049 ifi_change 0x0041 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 1 flags 65609 change 65 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 772 index 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 60 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 60 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 60 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 60 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 476 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 236 type 16 flags 0x0002 seq 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 772 ifi_index 1 ifi_flags 0x10049 ifi_change 0x0000 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 1 flags 65609 change 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 772 index 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 240 type 16 flags 0x0002 seq 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 1 ifi_index 2 ifi_flags 0x1002 ifi_change 0x0000 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 2 flags 4098 change 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 1 index 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_create() node dev_52_54_00_12_34_56 type 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_create() device 0x805d858 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_register() element 0x805d858 name dev_52_54_00_12_34_56 parent (nil) Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_ref() element 0x805d858 name dev_52_54_00_12_34_56 refcount 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:set_reference_properties() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:register_element() element 0x805d858 path /dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_load() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_store() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:do_update() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() driver 0x805664c name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:device_probe() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:device_probe() driver 0xb7da3430 name ethernet Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_probe() device 0x805d858 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:connman_rtnl_send_getlink() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:__connman_element_list() Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:append_path() element 0x805a978 name root Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:append_path() element 0x805d858 name dev_52_54_00_12_34_56 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:device_enable() device 0x805d858 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_enable() device 0x805d858 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 20 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002 seq 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:process_response() seq 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:send_request() GETLINK len 17 type 18 flags 0x0301 seq 2 Dec 29 22:22:24 openelec cron.err crond[1100]: crond (busybox 1.13.1) started, log level 8 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 244 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 244 type 16 flags 0x0000 seq 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 1 ifi_index 2 ifi_flags 0x11043 ifi_change 0x0041 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 2 flags 69699 change 65 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() power on Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_set_powered() driver 0x805d858 powered 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() carrier on Dec 29 22:22:24 openelec daemon.debug connmand[1091]: device.c:connman_device_set_carrier() driver 0x805d858 carrier 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_create() element 0x805ddc8 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_register() element 0x805ddc8 name (null) parent 0x805d858 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_ref() element 0x805ddc8 name (null) refcount 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:set_reference_properties() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:register_element() element 0x805ddc8 path /dev_52_54_00_12_34_56/device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_load() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:do_load() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_store() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() driver 0xb7d99910 name netdev Dec 29 22:22:24 openelec daemon.debug connmand[1091]: netdev.c:netdev_probe() element 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: netdev.c:create_element() parent 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_create() element 0x805b700 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_register() element 0x805b700 name (null) parent 0x805ddc8 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_ref() element 0x805b700 name (null) refcount 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:set_reference_properties() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:register_element() element 0x805b700 path /dev_52_54_00_12_34_56/device/dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_load() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:do_load() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_store() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() driver 0xb7d93bac name udhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: udhcp.c:udhcp_probe() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() driver 0xb7da7308 name dhclient Dec 29 22:22:24 openelec daemon.debug connmand[1091]: dhclient.c:dhclient_probe() element 0x805b700 name dhcp Dec 29 22:22:24 openelec daemon.debug connmand[1091]: netdev.c:create_element() parent 0x805ddc8 name device Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_create() element 0x805f670 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_register() element 0x805f670 name (null) parent 0x805ddc8 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:connman_element_ref() element 0x805f670 name (null) refcount 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:set_reference_properties() element 0x805f670 name zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:register_element() element 0x805f670 path /dev_52_54_00_12_34_56/device/zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_load() element 0x805f670 name zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:do_load() element 0x805f670 name zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: storage.c:__connman_element_store() element 0x805f670 name zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: element.c:probe_element() element 0x805f670 name zeroconf Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 1 index 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 480 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 236 type 16 flags 0x0002 seq 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 772 ifi_index 1 ifi_flags 0x10049 ifi_change 0x0000 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 1 flags 65609 change 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 772 index 1 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() NEWLINK len 244 type 16 flags 0x0002 seq 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_newlink() ifi_type 1 ifi_index 2 ifi_flags 0x11043 ifi_change 0x0000 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: ethernet.c:ethernet_newlink() index 2 flags 69699 change 0 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: detect.c:detect_newlink() type 1 index 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() buf 0xbfacae64 len 20 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:rtnl_message() DONE len 20 type 3 flags 0x0002 seq 2 Dec 29 22:22:24 openelec daemon.debug connmand[1091]: rtnl.c:process_response() seq 2

when i start udhcp manually i become a ip (in QEMU env., no wireless, no bluetooth etc. only eth0. what is meant by : Dec 29 22:22:24 openelec daemon.err connmand[1091]: Failed to bind listener socket

Stephan


Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman






_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman

Reply via email to