Re: Support for "raw-ip" mode
Yegor Yefremov
Mon Aug 19 08:02:52 2019
On Fri, Aug 16, 2019 at 5:34 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> Hi Yegor
>
> On 16/08/2019 10:30, Yegor Yefremov wrote:
> > Hi Roy,
> >
> > some recent QMI modems work only in "raw-ip" mode [1], [2]. So far,
> > only udhcpc can acquire dynamic IP address via this protocol.
> >
> > What do you think about adding support for this protocol?
> >
> > [1] https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-qmi
> > [2] http://www.embeddedpi.com/documentation/3g-4g-modems/raspberry-pi-sierra-wireless-mc7455-modem-raw-ip-qmi-interface-setup
>
> Unsure how udhcpc works and dhcpcd doesn't.
> If an IP address isn't set, udhcpc spits out a L2 address still:
> https://git.busybox.net/busybox/tree/networking/udhcp/packet.c
>
> Can you provide logs of dhcpcd not working on one, or access to such a
> device via ssh?
# dhcpcd wwan0
wwan0: unsupported interface family 00
wwan0: waiting for carrier
wwan0: carrier acquired
DUID 00:01:00:01:c7:92:bc:92:74:6a:8f:ff:50:55
wwan0: IAID 00:00:00:06
wwan0: using static address 169.254.227.48/16
arp_open: wwan0: Invalid argument
arp_announce: Invalid argument
forked to background, child pid 354
This is how the interface looks like:
# ip addr show wwan0
6: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN group default qlen 1000
link/none
inet 169.254.227.48/16 brd 169.254.255.255 scope global noprefixroute wwan0
valid_lft forever preferred_lft forever
And this is what happens with udhcpc:
# udhcpc -i wwan0
udhcpc: started, v1.31.0
udhcpc: sending discover
udhcpc: sending select for 10.50.235.7
udhcpc: lease of 10.50.235.7 obtained, lease time 7200
deleting routers
adding dns 62.109.121.17
adding dns 62.109.121.18
Yegor
Archive administrator: postmaster@marples.name