«bearer-mbim: avoid attempting to load deactivated IP types» broke IP-type IPv4v6
1cd78cc2 «bearer-mbim: avoid attempting to load deactivated IP types» by @aleksm broke IP-type IPv4v6.
After connecting an IPv4v6 bearer, ModemManager only returns IPv4 information. This is evident by the mmcli -b
output as well as from the actual IP addresses and routes applied to the interface by NetworkManager.
Current master
(29d9dc7e) behaves as follows (debug log):
[tore:~/git/ModemManager] master ± /tmp/mm/bin/mmcli -m 0 --simple-connect=apn=telenor.smart,ip-type=ipv4v6
successfully connected the modem
[tore:~/git/ModemManager] master ± /tmp/mm/bin/mmcli -m 0 -b 1
--------------------------------
General | path: /org/freedesktop/ModemManager1/Bearer/1
| type: default
--------------------------------
Status | connected: yes
| suspended: no
| interface: wwp0s20f0u3c3
| ip timeout: 20
--------------------------------
Properties | apn: telenor.smart
| roaming: allowed
| ip type: ipv4v6
--------------------------------
IPv4 configuration | method: static
| address: 10.167.4.204
| prefix: 29
| gateway: 10.167.4.201
| dns: 193.213.112.4, 130.67.15.198
| mtu: 1500
--------------------------------
Statistics | attempts: 1
Current master
with 1cd78cc2 reverted, on the other hand, behaves like this (debug log):
[tore:~/git/ModemManager] master ± git revert 1cd78cc28a9c82be70b56731636bb9299bdd1fb2
Auto-merging src/mm-bearer-mbim.c
[master 2809b366] Revert "bearer-mbim: avoid attempting to load deactivated IP types"
1 file changed, 5 deletions(-)
[tore:~/git/ModemManager] master(1) ± /tmp/mm/bin/mmcli -m 0 --simple-connect=apn=telenor.smart,ip-type=ipv4v6
successfully connected the modem
[tore:~/git/ModemManager] master(1) ± /tmp/mm/bin/mmcli -m 0 -b 1
--------------------------------
General | path: /org/freedesktop/ModemManager1/Bearer/1
| type: default
--------------------------------
Status | connected: yes
| suspended: no
| interface: wwp0s20f0u3c3
| ip timeout: 20
--------------------------------
Properties | apn: telenor.smart
| roaming: allowed
| ip type: ipv4v6
--------------------------------
IPv4 configuration | method: static
| address: 10.167.4.204
| prefix: 29
| gateway: 10.167.4.201
| dns: 193.213.112.4, 130.67.15.198
| mtu: 1500
--------------------------------
IPv6 configuration | method: static
| address: 2a02:2121:34e:26fb:5a2c:80ff:fe13:9208
| prefix: 64
| gateway: ::
| dns: 2001:4600:4:fff::52, 2001:4600:4:1fff::52
| mtu: 1500
--------------------------------
Statistics | attempts: 1
This bug is present in the latest ModemManager-1.14.10-1.fc33.x86_64
in Fedora 33. It can be successfully worked around with dnf downgrade ModemManager-1.14.2-1.fc33
, however.