Hi,
On Wed, Dec 30, 2020 at 01:15:17PM +1100, Jupiter wrote:
Before running CONNMAN_DHCP_DEBUG=1 connmand -n -d
src/dhcp.c:src/network.c, I did a a debug to examine connman logs,
The logs don't contain the debug output. Only the info output. There
should be a lot more log entries.
Here is the procedures I was doing debug:
- Connect LTE antenna, connected
- Disconnect LTE antenna, lost LTE IP
- Connect LTE antenna, resumed
- Repeat above until no IP
When it is working, this log pattern repeats?
connmand[2375]: ipconfig state 3 ipconfig method 1
connmand[2375]: wwan0 {add} address 10.114.169.197/30 label wwan0 family 2
connmand[2375]: wwan0 {add} route 10.114.169.196 gw 0.0.0.0 scope 253 <LINK>
connmand[2375]: wwan0 {add} route 10.114.169.198 gw 0.0.0.0 scope 253 <LINK>
connmand[2375]: wwan0 {add} route 10.4.130.164 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {add} route 10.4.58.204 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {add} route 0.0.0.0 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {add} route 212.227.81.55 gw 10.114.169.198 scope 0
<UNIVERSE>
connmand[2375]: wwan0 {del} route 212.227.81.55 gw 10.114.169.198 scope 0
<UNIVERSE>
connmand[2375]: wwan0 {del} route 0.0.0.0 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {del} route 10.4.130.164 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {del} route 10.4.58.204 gw 10.114.169.198 scope 0 <UNIVERSE>
connmand[2375]: wwan0 {del} route 10.114.169.198 gw 0.0.0.0 scope 253 <LINK>
connmand[2375]: wwan0 {del} address 10.114.169.197/30 label wwan0
connmand[2375]: wwan0 {del} route 10.114.169.196 gw 0.0.0.0 scope 253 <LINK>
This is triggered by RTNL message by the kernel. They are the result of
ConnMan configuring the wwan0 interface. The lack of it, just says,
ConnMan didn't configure the interface.
Maybe also add plugins/ofono.c to the debug list filter.
CONNMAN_DHCP_DEBUG=1 connmand -n -d src/dhpc.c:src/network.c:plugins/ofono.c
Daniel