<div dir="ltr"><div><div><div>[ Sorry. hit something magic that apparently meant 'send'. Trying again ]<br></div><div><br>Hi all<br><br></div>I recently added an EM7455 to my Thinkpad
X1 and in the goal of making it work have been learning a *little* more
than I expected to have to about MBIM (and for that matter about
IPv6-only connectivity)<br><br></div>Because my current distribution doesn't seem to want to let me run ModemManager without NetworkManager I wanted to make everything work using the supplied mbim-network script, and it seems that the biggest missing bit there is actually configuring the interface/gateway/dns servers etc after the connection is made. Because I don't much like writing machine parsers for potentially brittle intended-for-humans output, I took the liberty of writing a small patch to optionally turn the output of --query-ip-configuration into awk-friendly tab separated lines. So for example I can run<br><br>$ mbimcli -p -d /dev/cdc-wdm0 --query-ip-configuration --machine-readable<br><br>IPv4 fields none<br><br>IPv6 fields address, gateway, dns, mtu<br>IPv6 address 2a01:4c8:1b:eb13:2dbf:b045:8a94:88fa/64<br>IPv6 gateway 2a01:4c8:1b:eb13:40dc:ba5f:4d43:d4c<br>IPv6 dns 2a01:4c8:f000:1::1<br>IPv6 dns 2a01:4c8:f000:1::2<br>IPv6 mtu 1500<br><br></div><div>Would there be any interest in merging this or something like it? I see some previous discussion about extending mbim-network to configure the wwan interface (<a href="https://lists.freedesktop.org/archives/libmbim-devel/2015-May/000576.html">https://lists.freedesktop.org/archives/libmbim-devel/2015-May/000576.html</a>) and it seems to me like having an easy-to-parse output format for the necessary config data would be an important part of that work.<br><br>I can't see any contribution guidelines in the project repo so I hope that attaching a diff as MIME is acceptable. I've also posted it as a gist at <a href="https://gist.github.com/telent/fa67574cbb483228d9861376e8dea92a">https://gist.github.com/telent/fa67574cbb483228d9861376e8dea92a</a><br></div><div><br><br></div><div>-dan<br><br></div><div>-- <br><div class="gmail_signature"><a href="mailto:dan@telent.net" target="_blank">dan@telent.net</a> <br><a href="http://ww.telent.net" target="_blank">http://ww.telent.net</a><br></div>
</div></div>