mbim Bearer reports IP_METHOD_DHCP when namesservers are missing

Andreas Fett andreas.fett at secunet.com
Thu Dec 3 02:18:27 PST 2015


Hi,

In src/mm-bearer-mbim.c: ip_configuration_query_ready()
the bearer will set IP_METHOD_DHCP if ipv4dnsservercount is zero,
it does so regardless of any present IP configuration (which is visible
in the bearer object).

Unfortunately some (or all?) mbim modems do not support DHCP, and I have
a scenario at hand where the provider does not supply any DNS servers.

I noticed that other bearer implementations (eg.
mm-broadband-bearer-mbm) will report IP_METHOD_STATIC even if no
nameserver info could be acquired.

Which is the correct way to deal with this? Patch the mibm bearer
to report IP_METHOD_STATIC if it gets at least ip and gateway or
just ignore the IP_METHOD_XXX if we find all info we need in the bearer?

Cheers
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20151203/c12d61ef/attachment.sig>


More information about the ModemManager-devel mailing list