Is it expected or as-designed that connman creates situations in which an
interface has two or more IP addresses? In particular, a case in which it was
NOT a result of accepting two DHCP offers, but rather a crash or a non-maskable
signal?
For example, this crash below, resulted in wlan0 having two IP addresses, the
most recent address of which became the secondary:
connmand[389]: ...
connmand[389]: wlan0 {RX} 9143 packets 3840476 bytes
connmand[389]: wlan0 {TX} 2059 packets 1360378 bytes
connmand[389]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
connmand[389]: wlan0 lower up
connmand[389]: wlan0 lower up
connmand[389]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[389]: wlan0 {newlink} index 2 operstate 6 <UP>
connmand[389]: mmap error Invalid argument for
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data
connmand[389]:
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data might be on
a file system, such as JFFS2, that does not allow shared writable mappings.
connmand[389]: DHCP: switch listening mode (0 ==> 1)
connmand[389]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67
interval 3
connmand[389]: DHCP: received DHCPOFFER (0x2) packet (current state 0)
connmand[389]: DHCP: OFFER of 10.2.0.135 from 10.2.0.1
connmand[389]: DHCP: start request (retries 0)
connmand[389]: DHCP: switch listening mode (1 ==> 1)
connmand[389]: DHCP: REQUEST of 10.2.0.135 on wlan0 to 255.255.255.255
port 67 interval 3
connmand[389]: DHCP: received DHCPACK (0x5) packet (current state 1)
connmand[389]: DHCP: switch listening mode (1 ==> 0)
connmand[389]: DHCP: ACK of 10.2.0.135 from 10.2.0.1
connmand[389]: Setting domainname to domain.actdsltmp
connmand[389]: Deleting host route failed (No such process)
connmand[389]: Adding DNS server 10.2.0.1
connmand[389]: Enabling DNS server 10.2.0.1
connmand[389]: Enabling DNS server 10.2.0.1
connmand[389]: Resolving NTP peer pool.ntp.org
connmand[389]: Enabling DNS server 10.2.0.1
connmand[389]: Removing DNS server 10.2.0.1
connmand[389]: Adding DNS server 10.2.0.1
connmand[389]: Enabling DNS server 10.2.0.1
connmand[389]: DHCP: bound to 10.2.0.135 -- renewal in 864000 seconds.
connmand[389]: DHCP: processed DHCPACK (0x5) packet (new state 2)
connmand[389]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
connmand[389]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[389]: wlan0 {del} route ff00:: gw :: scope 0 <UNIVERSE>
connmand[389]: wlan0 ip bound
connmand[389]: wlan0 ip bound
connmand[389]: wlan0 {add} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
connmand[389]: ++++++++ backtrace ++++++++
connmand[389]: ...
connmand[389]: +++++++++++++++++++++++++++
# ip addr show dev wlan0
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 100
link/ether 00:0c:29:4c:56:a2 brd ff:ff:ff:ff:ff:ff
inet 10.2.0.135/16 brd 10.2.255.255 scope global wlan0
# /usr/bin/connmand -W wext -n &
connmand[428]: Connection Manager version 0.71
connmand[428]: Checking loopback interface settings
connmand[428]: System hostname is fish.local
connmand[428]: System domainname is domain.actdsltmp
connmand[428]: Adding NTP server pool.ntp.org
connmand[428]: Adding profile default
connmand[428]: lo {newlink} index 1 operstate 0 <UNKNOWN>
connmand[428]: wlan0 {create} index 2 type 1 <ETHER>
connmand[428]: wlan0 {RX} 46035 packets 15645764 bytes
connmand[428]: wlan0 {TX} 13983 packets 5153216 bytes
connmand[428]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {newlink} index 2 operstate 6 <UP>
connmand[428]: Create interface wlan0 [ wifi ]
connmand[428]: wlan0 {add} address 10.2.0.135/16 label wlan0 family 2
connmand[428]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
connmand[428]: wlan0 {add} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
connmand[428]: wlan0 {add} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
connmand[428]: mmap error Invalid argument for
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data
connmand[428]:
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data might be on
a file system, such as JFFS2, that does not allow shared writable mappings.
connmand[428]: wlan0 up
connmand[428]: wlan0 lower up
connmand[428]: wlan0 up
connmand[428]: wlan0 lower up
connmand[428]: Skipping disconnect of 53706f74_managed_psk
connmand[428]: Requesting connection to network "Spot" identifier
"53706f74_managed_psk".
connmand[428]: wlan0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
connmand[428]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {RX} 46038 packets 15646098 bytes
connmand[428]: wlan0 {TX} 13985 packets 5153384 bytes
connmand[428]: wlan0 {update} flags 69635 <UP,LOWER_UP>
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
connmand[428]: wlan0 {RX} 46038 packets 15646098 bytes
connmand[428]: wlan0 {TX} 13985 packets 5153384 bytes
connmand[428]: wlan0 {update} flags 4099 <UP>
connmand[428]: wlan0 lower down
connmand[428]: wlan0 lower down
connmand[428]: Clear IPv6 address error
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {newlink} index 2 operstate 2 <DOWN>
connmand[428]: Periodic (300s) scan for device wifi interface wlan0.
connmand[428]: wlan0 {RX} 46038 packets 15646098 bytes
connmand[428]: wlan0 {TX} 13985 packets 5153384 bytes
connmand[428]: wlan0 {update} flags 69635 <UP,LOWER_UP>
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
connmand[428]: wlan0 {RX} 46040 packets 15646352 bytes
connmand[428]: wlan0 {TX} 13987 packets 5153632 bytes
connmand[428]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
connmand[428]: wlan0 lower up
connmand[428]: wlan0 lower up
connmand[428]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu
1500
connmand[428]: wlan0 {newlink} index 2 operstate 6 <UP>
connmand[428]: mmap error Invalid argument for
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data
connmand[428]:
/var/lib/connman/stats/wifi_000c294c56a2_53706f74_managed_psk.data might be on
a file system, such as JFFS2, that does not allow shared writable mappings.
connmand[428]: DHCP: switch listening mode (0 ==> 1)
connmand[428]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67
interval 3
connmand[428]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67
interval 3
connmand[428]: DHCP: received DHCPOFFER (0x2) packet (current state 0)
connmand[428]: DHCP: OFFER of 10.2.0.144 from 10.2.0.1
connmand[428]: DHCP: start request (retries 0)
connmand[428]: DHCP: switch listening mode (1 ==> 1)
connmand[428]: DHCP: REQUEST of 10.2.0.144 on wlan0 to 255.255.255.255
port 67 interval 3
connmand[428]: DHCP: received DHCPACK (0x5) packet (current state 1)
connmand[428]: DHCP: switch listening mode (1 ==> 0)
connmand[428]: DHCP: ACK of 10.2.0.144 from 10.2.0.1
connmand[428]: Lease available
connmand[428]: DHCP lease available for service
wifi_000c294c56a2_53706f74_managed_psk
connmand[428]: Setting domainname to domain.actdsltmp
connmand[428]: Adding DNS server 10.2.0.1
connmand[428]: Enabling DNS server 10.2.0.1
connmand[428]: Setting default gateway route failed (File exists)
connmand[428]: DHCP: bound to 10.2.0.144 -- renewal in 864000 seconds.
connmand[428]: DHCP: processed DHCPACK (0x5) packet (new state 2)
connmand[428]: wlan0 {add} address 10.2.0.144/16 label wlan0 family 2
connmand[428]: wlan0 ip bound
connmand[428]: wlan0 ip bound
connmand[428]: wlan0 {del} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
connmand[428]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
connmand[428]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[428]: wlan0 {del} route ff00:: gw :: scope 0 <UNIVERSE>
# ip addr show dev wlan0
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 100
link/ether 00:0c:29:4c:56:a2 brd ff:ff:ff:ff:ff:ff
inet 10.2.0.135/16 brd 10.2.255.255 scope global wlan0
inet 10.2.0.144/16 brd 10.2.255.255 scope global secondary wlan0
Regards,
Grant
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman