Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Re: Connman to control OpenVPN connection (Florent Le Saout)
   2. [PATCH v2 0/3] Fix unit tests and move pacrunner to mozjs38
      (Jeremy Linton)


----------------------------------------------------------------------

Message: 1
Date: Wed, 19 Apr 2017 17:08:53 +0200
From: Florent Le Saout <[email protected]>
To: Daniel Wagner <[email protected]>, "[email protected]"
        <[email protected]>
Subject: Re: Connman to control OpenVPN connection
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"

Hi Daniel,

Sorry for the delay but I was busy on something else lately.

On 15/02/2017 07:41, Daniel Wagner wrote:
> Hi Florent,
>
> Do not top post and no HTML please.
>
> On 02/13/2017 09:53 AM, Florent Le Saout wrote:
>> Thanks for spending some time trying reproducing that. :)
>>
>> I'm actually on 2.3.14 on both side, compiled for ARM for the client and
>> x86_64 for the server.
>>
>> I could not migrate so far on 2.4
>
> I am not aware of any 2.3 vs 2.4 issues so far. At least for ConnMan
> it is the same, unless the few options we use got renamed or removed.
> Though the there might be a different behavior between those two
> versions, but that seem to me very likely.
>
>>   * _Regarding routes :_
>>
>>
>> What I observe is that most of the times routes are properly set and
>> connman is listing services in the right order :
>>
>>     root # connmanctl services
>>     * R  VPN                   vpn_192_168_4_201_test
>>     *AO Wired                ethernet_7076ff010e20_cable
>>
>>      # ip route
>>     default dev vpn0
>>     10.8.0.1 dev vpn0
>>     192.168.4.0/23 dev eth0  src 192.168.4.119
>>     192.168.4.4 dev eth0
>>     192.168.4.201 via 192.168.4.4 dev eth0
>>
>> But once in a while, it's not correct.
>> How can we make sure that VPN will always be on top of the others, which
>> is the default expected behavior from my perspectives ?
>
> Can you send the log file generated by
>
> sudo ./src/connmand -n -d src/service.c 2>&1 | ts '[%H:%M:%.S]' | tee
> connman.log
>
> one when it works and one for when it's wrong. If possible annotating
> the time when the operations filed with the time stamp, so that we
> have a chance to find the right spot.

I think I figured out the reproducing method.

When I get the first connection, (so before the local settings file
exist : vpn_X_X_X_X/settings) the route is always wrong.

But at the second boot when the file is already there the route is
properly setup.

Please find attached the logs with proper and incorrect route setup.

I guess it's trying to set the default route to the kernel before the
vpn tunnel is actually ready ?
Let me know if there is other points I should check or if I should add
more logs.

>
>> I will also try to reproduce it on my side and try to provide you with
>> as much details as I can.
>>
>>   * _Regarding Autoconnect :_
>>
>> When you say :
>>
>>     The VPN Service itself has an AutoConnect property which tells
>>     ConnMan to start it automatically.
>>
>> Do you mean that this is set automatically by default for this type of
>> service, or do I need to set it manually bu setting an option, because
>> if this is the case I haven't found it ?
>> See below the actual details of my connexion :
>
> You need to set it per Service via the D-Bus API, e.g. using connmanctl
>
> connmanctl config VPN_SERVICE_NAME --autoconnect yes
>
>>
>>     /net/connman/service/vpn_192_168_4_201_test
>>       Type = vpn
>>       Security = [  ]
>>       State = ready
>>       Favorite = True
>>       Immutable = False
>>       AutoConnect = False
>
> Consider this file as read only. It will be overwritten without
> warning. If you edit by hand you need first to shutdown connman-vpn
>
> Thanks,
> Daniel
Thanks,
Florent.

-------------- next part --------------
09:01:08 GID set to nogroup
09:01:08 UID set to nobody
09:01:08 Initialization Sequence Completed
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_gateway_add() type 1 
gw 192.168.4.201 peer (null)
09:01:08 ../connman-1.33/src/connection.c:__connman_connection_gateway_add() 
service 0x15eb248 index 10 gateway 192.168.4.201
ip
09:01:08 ../connman-1.33/src/service.c:connman_service_ref_debug() 0x15eb248 
ref 2 by ../connman-1.33/src/connection.c:403:ad
d_gateway()
09:01:08 ../connman-1.33/src/connection.c:find_active_gateway() 
09:01:08 ../connman-1.33/src/connection.c:__connman_connection_gateway_add() 
active 0x15e5180 index 3 new 0x15ec958
09:01:08 ../connman-1.33/src/inet.c:connman_inet_compare_subnet() host 10.8.0.1
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() index 10 
host 10.8.0.1 gateway 192.168.4.201 netmask (nu
ll)
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() ifname vpn0
09:01:08 Adding host route failed (Network is unreachable)
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() index 10 
host 10.8.0.1 gateway (null) netmask (null)
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() ifname vpn0
09:01:08 ../connman-1.33/src/connection.c:set_vpn_routes() new 0x15ec958 
service 0x15eb248 gw 192.168.4.201 type 1 peer (null
0x15e5180
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_get_route() dest 
192.168.4.201
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_open() fd 18
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_talk() handle 0x15f0480 
len 48
09:01:08 ../connman-1.33/src/connection.c:set_vpn_routes() active gw 192.168.4.4
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() index 3 
host 192.168.4.201 gateway 192.168.4.4 netmask (
null)
09:01:08 ../connman-1.33/src/inet.c:connman_inet_add_network_route() ifname eth0
09:01:08 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() index 
3 gateway 192.168.4.4
09:01:08 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() ifname 
eth0
09:01:08 
../connman-1.33/src/service.c:__connman_service_ipconfig_indicate_state() 
service 0x15eb248 (vpn_192_168_4_201_ran_c
state state 4 (ready) type 1 (IPv4)
09:01:08 ../connman-1.33/src/wpad.c:__connman_wpad_start() service 0x15eb248
09:01:08 ../connman-1.33/src/wpad.c:__connman_wpad_start() hostname wpad.ran.com
09:01:08 ../connman-1.33/src/service.c:connman_service_ref_debug() 0x15eb248 
ref 3 by ../connman-1.33/src/wpad.c:176:__connma
n_wpad_start()
09:01:08 rp_filter set to 2 (loose mode routing), old value was 0
09:01:08 ../connman-1.33/src/service.c:service_rp_filter() connected 
vpn_192_168_4_201_ran_com ipconfig 0x15e8740 method 2 co
filter
09:01:08 ../connman-1.33/src/resolver.c:connman_resolver_append() index 10 
domain (null) server 10.8.0.1
09:01:08 ../connman-1.33/src/resolver.c:append_resolver() index 10 domain 
(null) server 10.8.0.1 lifetime 0 flags 0
09:01:08 ../connman-1.33/src/dnsproxy.c:__connman_dnsproxy_append() index 10 
server 10.8.0.1
09:01:08 ../connman-1.33/src/dnsproxy.c:find_server() index 10 server 10.8.0.1 
proto 17
09:01:08 ../connman-1.33/src/dnsproxy.c:create_server() index 10 server 10.8.0.1
09:01:08 ../connman-1.33/src/dnsproxy.c:server_create_socket() index 10 server 
10.8.0.1 proto 17
09:01:08 ../connman-1.33/src/dnsproxy.c:server_create_socket() sk 23
09:01:08 ../connman-1.33/src/ntp.c:__connman_ntp_stop() 
09:01:08 ../connman-1.33/src/timeserver.c:__connman_timeserver_sync() No 
timeservers set.
09:01:08 ../connman-1.33/src/service.c:service_indicate_state() service 
0x15eb248 old association - new ready/association => 
ready
09:01:08 ../connman-1.33/src/session.c:service_state_changed() service 
0x15eb248 state 4
09:01:08 ../connman-1.33/src/resolver.c:connman_resolver_append() index 10 
domain ran.com server (null)
09:01:08 ../connman-1.33/src/resolver.c:append_resolver() index 10 domain 
ran.com server (null) lifetime 0 flags 0
09:01:08 ../connman-1.33/src/dnsproxy.c:__connman_dnsproxy_append() index 10 
server (null)
09:01:08 ../connman-1.33/src/dnsproxy.c:update_domain() index 10 domain ran.com
09:01:08 ../connman-1.33/src/stats.c:__connman_stats_service_register() service 
0x15eb248
09:01:08 ../connman-1.33/src/stats.c:stats_open() file 0x15e9d80 name 
/etc/network/connman/vpn_192_168_4_201_ran_com/data
09:01:08 ../connman-1.33/src/stats.c:stats_file_setup() file 0x15e9d80 fd 24 
name /etc/network/connman/vpn_192_168_4_201_ran_
com/data
09:01:08 ../connman-1.33/src/stats.c:stats_file_remap() file 0x15e9d80 size 
4096 addr (nil) len 0
09:01:08 ../connman-1.33/src/dbus.c:connman_dbus_reply_pending() sender 
net.connman.Service path /net/connman/service/vpn_192
_168_4_201_ran_com
09:01:08 VPN connected
09:01:08 ../connman-1.33/src/service.c:service_save() service 0x15eb248 new 0
09:01:08 ../connman-1.33/src/storage.c:storage_load() Loading 
/etc/network/connman/vpn_192_168_4_201_ran_com/settings
09:01:08 ../connman-1.33/src/storage.c:storage_load() Unable to load 
/etc/network/connman/vpn_192_168_4_201_ran_com/settings:
such
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_save() ipconfig 
0x15e8740 identifier vpn_192_168_4_201_ran_com met

09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_save() ipconfig 
0x15e4300 identifier vpn_192_168_4_201_ran_com met

09:01:08 ../connman-1.33/src/service.c:append_nameservers() servers[0] 10.8.0.1 
available 1
09:01:08 ../connman-1.33/src/notifier.c:__connman_notifier_connect() type 7
09:01:08 ../connman-1.33/src/ipconfig.c:disable_ipv6() 
09:01:08 ../connman-1.33/src/connection.c:__connman_connection_update_gateway() 
default 0x15e5180
09:01:08 ../connman-1.33/src/provider.c:provider_indicate_state() state 4
09:01:08 ipconfig state 4 ipconfig method 1
09:01:08 
../connman-1.33/src/service.c:__connman_service_ipconfig_indicate_state() 
service 0x15eb248 (vpn_192_168_4_201_ran_c
state state 1 (idle) type 2 (IPv6)
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_disable() ipconfig 
0x15e4300
09:01:08 ../connman-1.33/src/ntp.c:__connman_ntp_stop() 
09:01:08 ../connman-1.33/src/timeserver.c:__connman_timeserver_sync() No 
timeservers set.
09:01:08 ../connman-1.33/src/service.c:service_indicate_state() service 
0x15eb248 old ready - new ready/idle => ready
09:01:08 ../connman-1.33/plugins/vpn.c:set_routes() provider 0x15e9960
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 88
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() NEWADDR len 88 type 20 flags 
0x0000 seq 1 pid -4121
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newaddr() index 10
09:01:08 ../connman-1.33/src/inet.c:inet_rtnl_event() 
09:01:08 ../connman-1.33/src/inet.c:inet_rtnl_recv() received 104 seq 1492592469
09:01:08 ../connman-1.33/src/inet.c:get_route_cb() answer 0x7ed88af8 data 
0x15ee350
09:01:08 ../connman-1.33/src/inet.c:get_route_cb() addr 192.168.4.4 index 3 
user 0x15effc8
09:01:08 ../connman-1.33/src/connection.c:get_gateway_cb() phy index 3 phy gw 
192.168.4.4 vpn index 10 vpn gw 192.168.4.201
09:01:08 ../connman-1.33/src/connection.c:get_gateway_cb() vpn 192.168.4.201 
phy index 3
09:01:08 ../connman-1.33/src/inet.c:inet_rtnl_cleanup() data 0x15f0160
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_close() handle 0x15f0480
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 52
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 52 type 24 
flags 0x0000 seq 0 pid 0
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 10
09:01:08 vpn0 {add} route 10.8.0.1 gw 0.0.0.0 scope 253 <LINK>
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 60
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 
flags 0x0000 seq 0 pid 0
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 3
09:01:08 eth0 {add} route 192.168.4.201 gw 192.168.4.4 scope 0 <UNIVERSE>
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 52
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() DELROUTE len 52 type 25 
flags 0x0000 seq 0 pid 0
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_delroute() index 3
09:01:08 ../connman-1.33/src/service.c:service_route_changed() eth0 route 
changed
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_append_ipv4() 
09:01:08 ../connman-1.33/src/session.c:ipconfig_changed() service 0x15ebf90 
ipconfig 0x15ec190
09:01:08 eth0 {del} route 0.0.0.0 gw 192.168.4.4 scope 0 <UNIVERSE>
09:01:08 ../connman-1.33/src/connection.c:connection_delgateway() index 3 
gateway 192.168.4.4
09:01:08 ../connman-1.33/src/connection.c:set_default_gateway() type 3 gateway 
ipv4 0x15e5198 ipv6 (nil)
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_open() fd 18
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_talk() handle 
0x7ed88500 len 44
09:01:08 ../connman-1.33/src/inet.c:__connman_inet_rtnl_close() handle 
0x7ed88500
09:01:08 ../connman-1.33/src/service.c:__connman_service_indicate_default() 
service 0x15ebf90 state online
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 52
09:01:08 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 52 type 24 
flags 0x0000 seq 1492592469 pid -4123
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 3
09:01:08 ../connman-1.33/src/service.c:service_route_changed() eth0 route 
changed
09:01:08 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_append_ipv4() 
09:01:08 ../connman-1.33/src/session.c:ipconfig_changed() service 0x15ebf90 
ipconfig 0x15ec190
09:01:08 eth0 {add} route 0.0.0.0 gw 192.168.4.4 scope 0 <UNIVERSE>
09:01:08 ../connman-1.33/src/connection.c:connection_newgateway() index 3 
gateway 192.168.4.4
09:01:08 ../connman-1.33/src/wpad.c:wpad_result() status 0
09:01:08 
../connman-1.33/src/ipconfig.c:__connman_ipconfig_set_proxy_autoconfig() 
ipconfig 0x15e8740
09:01:08 
../connman-1.33/src/ipconfig.c:__connman_ipconfig_get_proxy_autoconfig() 
ipconfig 0x15e8740
09:01:08 ../connman-1.33/plugins/pacrunner.c:proxy_changed() service 0x15eb248
09:01:08 ../connman-1.33/src/wispr.c:__connman_wispr_start() service 0x15eb248
09:01:08 ../connman-1.33/src/wispr.c:wispr_portal_detect() wispr/portal context 
0x15ee7d8
09:01:08 ../connman-1.33/src/wispr.c:wispr_portal_detect() service 0x15eb248
09:01:08 ../connman-1.33/src/service.c:service_send_changed() 
09:01:08 ../connman-1.33/src/service.c:service_append_added_foreach() changed 
/net/connman/service/ethernet_7076ff017749_cabl
e
09:01:08 ../connman-1.33/src/service.c:service_append_added_foreach() changed 
/net/connman/service/vpn_192_168_4_201_ran_com
09:01:09 Listen normally on 6 vpn0 10.8.0.18:123
09:01:09 new interface(s) found: waking up resolver
09:01:12 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 116
09:01:12 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 116 type 24 
flags 0x0000 seq 0 pid 0
09:01:12 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7ed88b00 len 116
09:01:12 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 116 type 24 
flags 0x0000 seq 0 pid 0

-------------- next part --------------
19 09:05:46 GID set to nogroup
19 09:05:46 UID set to nobody
19 09:05:46 Initialization Sequence Completed
19 09:05:46 ../connman-1.33/src/inet.c:__connman_inet_get_route() dest 
192.168.4.201
19 09:05:46 ../connman-1.33/src/inet.c:__connman_inet_rtnl_open() fd 16
19 09:05:46 ../connman-1.33/src/inet.c:__connman_inet_rtnl_talk() handle 
0xf5d940 len 48
19 09:05:46 ../connman-1.33/src/connection.c:set_vpn_routes() active gw 
192.168.4.4
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_add_network_route() index 3 
host 192.168.4.201 gateway 192.168.4.4 netmask (
null)
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_add_network_route() ifname 
eth0
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() 
index 3 gateway 192.168.4.4
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() 
ifname eth0
19 09:05:46 
../connman-1.33/src/service.c:__connman_service_ipconfig_indicate_state() 
service 0xf57248 (vpn_192_168_4_201_ran_co
old state state 4 (ready) type 1 (IPv4)
19 09:05:46 ../connman-1.33/src/wpad.c:__connman_wpad_start() service 0xf57248
19 09:05:46 ../connman-1.33/src/wpad.c:__connman_wpad_start() hostname 
wpad.ran.com
19 09:05:46 ../connman-1.33/src/service.c:connman_service_ref_debug() 0xf57248 
ref 3 by ../connman-1.33/src/wpad.c:176:__connman
_wpad_start()
19 09:05:46 ../connman-1.33/src/service.c:service_rp_filter() connected 
vpn_192_168_4_201_ran_com ipconfig 0xf560e0 method 2 cou
1 filter
19 09:05:46 ../connman-1.33/src/resolver.c:connman_resolver_append() index 10 
domain (null) server 10.8.0.1
19 09:05:46 ../connman-1.33/src/resolver.c:append_resolver() index 10 domain 
(null) server 10.8.0.1 lifetime 0 flags 0
19 09:05:46 ../connman-1.33/src/dnsproxy.c:__connman_dnsproxy_append() index 10 
server 10.8.0.1
19 09:05:46 ../connman-1.33/src/dnsproxy.c:find_server() index 10 server 
10.8.0.1 proto 17
19 09:05:46 ../connman-1.33/src/dnsproxy.c:create_server() index 10 server 
10.8.0.1
19 09:05:46 ../connman-1.33/src/dnsproxy.c:server_create_socket() index 10 
server 10.8.0.1 proto 17
19 09:05:46 ../connman-1.33/src/dnsproxy.c:server_create_socket() sk 23
19 09:05:46 ../connman-1.33/src/ntp.c:__connman_ntp_stop() 
19 09:05:46 ../connman-1.33/src/timeserver.c:__connman_timeserver_sync() No 
timeservers set.
19 09:05:46 ../connman-1.33/src/service.c:service_indicate_state() service 
0xf57248 old association - new ready/idle => ready
19 09:05:46 ../connman-1.33/src/session.c:service_state_changed() service 
0xf57248 state 4
19 09:05:46 ../connman-1.33/src/resolver.c:connman_resolver_append() index 10 
domain ran.com server (null)
19 09:05:46 ../connman-1.33/src/resolver.c:append_resolver() index 10 domain 
ran.com server (null) lifetime 0 flags 0
19 09:05:46 ../connman-1.33/src/dnsproxy.c:__connman_dnsproxy_append() index 10 
server (null)
19 09:05:46 ../connman-1.33/src/dnsproxy.c:update_domain() index 10 domain 
ran.com
19 09:05:46 ../connman-1.33/src/dbus.c:connman_dbus_reply_pending() sender 
net.connman.Service path /net/connman/service/vpn_192
_168_4_201_ran_com
19 09:05:46 VPN connected
19 09:05:46 ../connman-1.33/src/service.c:service_save() service 0xf57248 new 0
19 09:05:46 ../connman-1.33/src/storage.c:storage_load() Loading 
/etc/network/connman/vpn_192_168_4_201_ran_com/settings
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_save() ipconfig 
0xf560e0 identifier vpn_192_168_4_201_ran_com meth
fixed
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_save() ipconfig 
0xf56110 identifier vpn_192_168_4_201_ran_com meth
off
19 09:05:46 ../connman-1.33/src/service.c:append_nameservers() servers[0] 
10.8.0.1 available 1
19 09:05:46 ../connman-1.33/src/notifier.c:__connman_notifier_connect() type 7
19 09:05:46 ../connman-1.33/src/ipconfig.c:disable_ipv6() 
19 09:05:46 
../connman-1.33/src/connection.c:__connman_connection_update_gateway() default 
0xf5ab38
19 09:05:46 ../connman-1.33/src/connection.c:unset_default_gateway() type 1 
gateway ipv4 0xf51198 ipv6 (nil)
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() 
index 3 gateway 192.168.4.4
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_clear_gateway_address() 
ifname eth0
19 09:05:46 ../connman-1.33/src/connection.c:set_default_gateway() type 1 
gateway ipv4 0xf55438 ipv6 (nil)
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_set_gateway_interface() 
index 10
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_set_gateway_interface() 
ifname vpn0
19 09:05:46 ../connman-1.33/src/connection.c:set_default_gateway() set 0xf5ab38 
index 10 vpn 192.168.4.201 index -1 phy (null)
19 09:05:46 ../connman-1.33/src/service.c:__connman_service_indicate_default() 
service 0xf57248 state ready
19 09:05:46 ../connman-1.33/src/service.c:default_changed() current default 
0xf57f90 ethernet_7076ff017749_cable
19 09:05:46 ../connman-1.33/src/service.c:default_changed() new default 
0xf57248 vpn_192_168_4_201_ran_com
19 09:05:46 ../connman-1.33/src/utsname.c:__connman_utsname_set_domainname() 
domainname ran.com
19 09:05:46 ../connman-1.33/src/utsname.c:__connman_utsname_set_domainname() 
driver 0xaea1c name loopback
19 09:05:46 Setting domainname to ran.com
19 09:05:46 ../connman-1.33/src/dnsproxy.c:dnsproxy_default_changed() service 
0xf57248
19 09:05:46 ../connman-1.33/src/dnsproxy.c:cache_invalidate() Invalidating the 
DNS cache 0xf53238
19 09:05:46 ../connman-1.33/src/dnsproxy.c:dnsproxy_default_changed() Disabling 
DNS server 192.168.4.33
19 09:05:46 ../connman-1.33/src/dnsproxy.c:dnsproxy_default_changed() Enabling 
DNS server 10.8.0.1
19 09:05:46 ../connman-1.33/plugins/pacrunner.c:default_service_changed() 
service 0xf57248
19 09:05:46 ../connman-1.33/src/timeserver.c:timeserver_start() service 0xf57248
19 09:05:46 ../connman-1.33/src/ntp.c:__connman_ntp_stop() 
19 09:05:46 ../connman-1.33/src/timeserver.c:__connman_timeserver_sync() No 
timeservers set.
19 09:05:46 ../connman-1.33/src/nat.c:update_default_interface() interface vpn0
19 09:05:46 ../connman-1.33/src/provider.c:provider_indicate_state() state 4
19 09:05:46 ipconfig state 4 ipconfig method 1
19 09:05:46 ../connman-1.33/plugins/vpn.c:set_routes() provider 0xf53718
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 88
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() NEWADDR len 88 type 20 
flags 0x0000 seq 1 pid -4122
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newaddr() index 10
19 09:05:46 ../connman-1.33/src/inet.c:inet_rtnl_event() 
19 09:05:46 ../connman-1.33/src/inet.c:inet_rtnl_recv() received 104 seq 
1492592747
19 09:05:46 ../connman-1.33/src/inet.c:get_route_cb() answer 0x7eb6baf8 data 
0xf51958
19 09:05:46 ../connman-1.33/src/inet.c:get_route_cb() addr 192.168.4.4 index 3 
user 0xf55458
19 09:05:46 ../connman-1.33/src/connection.c:get_gateway_cb() phy index 3 phy 
gw 192.168.4.4 vpn index 10 vpn gw 192.168.4.201
19 09:05:46 ../connman-1.33/src/connection.c:get_gateway_cb() vpn 192.168.4.201 
phy index 3
19 09:05:46 ../connman-1.33/src/inet.c:inet_rtnl_cleanup() data 0xf58958
19 09:05:46 ../connman-1.33/src/inet.c:__connman_inet_rtnl_close() handle 
0xf5d940
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 52
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 52 type 24 
flags 0x0000 seq 0 pid 0
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 
10
19 09:05:46 vpn0 {add} route 10.8.0.1 gw 0.0.0.0 scope 253 <LINK>
19 09:05:46 ../connman-1.33/src/wpad.c:wpad_result() status 0
19 09:05:46 
../connman-1.33/src/ipconfig.c:__connman_ipconfig_set_proxy_autoconfig() 
ipconfig 0xf560e0
19 09:05:46 
../connman-1.33/src/ipconfig.c:__connman_ipconfig_get_proxy_autoconfig() 
ipconfig 0xf560e0
19 09:05:46 ../connman-1.33/plugins/pacrunner.c:proxy_changed() service 0xf57248
19 09:05:46 ../connman-1.33/src/wispr.c:__connman_wispr_start() service 0xf57248
19 09:05:46 ../connman-1.33/src/wispr.c:wispr_portal_detect() wispr/portal 
context 0xf546f8
19 09:05:46 ../connman-1.33/src/wispr.c:wispr_portal_detect() service 0xf57248
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 60
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 
flags 0x0000 seq 0 pid 0
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 3
19 09:05:46 eth0 {add} route 192.168.4.201 gw 192.168.4.4 scope 0 <UNIVERSE>
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 52
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() DELROUTE len 52 type 25 
flags 0x0000 seq 0 pid 0
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_delroute() index 3
19 09:05:46 ../connman-1.33/src/service.c:service_route_changed() eth0 route 
changed
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_append_ipv4() 
19 09:05:46 ../connman-1.33/src/session.c:ipconfig_changed() service 0xf57f90 
ipconfig 0xf58190
19 09:05:46 eth0 {del} route 0.0.0.0 gw 192.168.4.4 scope 0 <UNIVERSE>
19 09:05:46 ../connman-1.33/src/connection.c:connection_delgateway() index 3 
gateway 192.168.4.4
19 09:05:46 ../connman-1.33/src/connection.c:set_default_gateway() type 3 
gateway ipv4 0xf55438 ipv6 (nil)
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_set_gateway_interface() 
index 10
19 09:05:46 ../connman-1.33/src/inet.c:connman_inet_set_gateway_interface() 
ifname vpn0
19 09:05:46 ../connman-1.33/src/connection.c:set_default_gateway() set 0xf5ab38 
index 10 vpn 192.168.4.201 index 3 phy (null)
19 09:05:46 ../connman-1.33/src/service.c:__connman_service_indicate_default() 
service 0xf57248 state ready
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 44
19 09:05:46 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 44 type 24 
flags 0x0000 seq 0 pid 0
19 09:05:46 ../connman-1.33/src/ipconfig.c:__connman_ipconfig_newroute() index 
10
19 09:05:46 vpn0 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
19 09:05:46 ../connman-1.33/src/connection.c:connection_newgateway() index 10 
gateway 0.0.0.0
19 09:05:46 ../connman-1.33/src/service.c:service_send_changed() 
19 09:05:46 ../connman-1.33/src/service.c:service_append_added_foreach() 
changed /net/connman/service/vpn_192_168_4_201_ran_com
19 09:05:46 ../connman-1.33/src/service.c:service_append_added_foreach() 
changed /net/connman/service/ethernet_7076ff017749_cabl
e
19 09:05:48 Listen normally on 6 vpn0 10.8.0.18:123
19 09:05:48 163.172.163.169 local addr 192.168.4.160 -> 10.8.0.18
19 09:05:48 new interface(s) found: waking up resolver
19 09:05:52 ../connman-1.33/src/rtnl.c:rtnl_message() buf 0x7eb6bb00 len 116
19 09:05:52 ../connman-1.33/src/rtnl.c:rtnl_message() NEWROUTE len 116 type 24 
flags 0x0000 seq 0 pid 0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: 
<http://lists.01.org/pipermail/connman/attachments/20170419/b709a31a/attachment-0001.asc>

------------------------------

Message: 2
Date: Wed, 19 Apr 2017 12:24:50 -0500
From: Jeremy Linton <[email protected]>
To: [email protected]
Cc: [email protected],        Jeremy Linton <[email protected]>
Subject: [PATCH v2 0/3] Fix unit tests and move pacrunner to mozjs38
Message-ID: <[email protected]>

Pacrunner is using a very old unsupported C based version
of the mozjs engine. This patch set moves pacrunner to a
more recent version that is currently in most distributions
due to the fact that gnome depends on it.

First though, we correct a couple problems in the unit tests which
result in valgrind/etc failures. Once these are corrected we then
covert the mozjs plugin module to C++, update the GC rooting and
replace the deprecated APIs with newer JS namespaced ones.

Jeremy Linton (3):
  Fix test-mozjs memory leak
  Fix unclean shutdown with proxy_disable
  Pull pacrunner forward to mozjs38

 Makefile.am                   |  15 +++---
 configure.ac                  |   4 +-
 plugins/{mozjs.c => mozjs.cc} | 109 ++++++++++++++++++++++--------------------
 src/proxy.c                   |   4 +-
 unit/test-mozjs.c             |  19 +++++---
 5 files changed, 83 insertions(+), 68 deletions(-)
 rename plugins/{mozjs.c => mozjs.cc} (59%)

-- 
2.11.0



------------------------------

Subject: Digest Footer

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


------------------------------

End of connman Digest, Vol 18, Issue 14
***************************************

Reply via email to