enzingerm / ModemManager

GNU General Public License v2.0
22 stars 2 forks source link

No ipv4 addedd to the wwan0 device #6

Open gabri94 opened 4 years ago

gabri94 commented 4 years ago

I managed to get the plugin and modemmanager running, however it doesn't add the ipv4 address to my wwan0 device. I managed to find it using mmcli -b 0 and if i add it manually to the device it works, however it is not added by default.

I tryied to debug the code in mm-bearer-xmm7360.c, and i found that self->priv->ip_config actually contains the address, nonetheless it is not addedd to the wwan device.

gabri94 commented 4 years ago

By serching around it might be a network manager issue, but i can't understand why or how. This is the network manager log:

May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2836] device (ttyXMM1): Activation: starting connection 'TIM' (4f427354-6d35-4511-afd9-327c5f039e23)
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2848] device (ttyXMM1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2969] device (ttyXMM1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2984] device (ttyXMM1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2990] modem["ttyXMM1"]: IPv6 configuration disabled
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2991] modem-broadband[ttyXMM1]: IPv4 static configuration:
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2992] modem-broadband[ttyXMM1]:   address 10.41.164.60/0
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2993] modem-broadband[ttyXMM1]:   gateway (null)
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2993] modem-broadband[ttyXMM1]:   DNS 217.200.201.66
May 11 17:54:44 kodama NetworkManager[10298]: <info>  [1589212484.2993] modem-broadband[ttyXMM1]:   DNS 217.200.201.67
May 11 17:54:44 kodama NetworkManager[10494]: <info>  [1589212484.7821] manager: (ttyXMM1): new Broadband device (/org/freedesktop/NetworkManager/Devices/10)
May 11 17:54:44 kodama NetworkManager[10494]: <info>  [1589212484.7837] device (ttyXMM1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May 11 17:54:44 kodama NetworkManager[10494]: <info>  [1589212484.7853] device (ttyXMM1): modem state 'connected'
May 11 17:54:44 kodama NetworkManager[10494]: <info>  [1589212484.7946] device (ttyXMM1): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
enzingerm commented 4 years ago

I'm quite curious why your log shows the new Broadband device message after the IP config has already been fetched... In my log this message appears way before I even activate the connection (Some seconds after ModemManager has been started). But on the other hand, NetworkManager already knows about the modem, otherwise you wouldn't be able to start the connection anyway, I assume.

gabri94 commented 4 years ago

is there a way to enable debug info in networkmanager?