Re: Support for "raw-ip" mode
Yegor Yefremov
Tue Aug 20 12:42:06 2019
On Tue, Aug 20, 2019 at 2:38 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> On 20/08/2019 11:29, Roy Marples wrote:
> > On 20/08/2019 10:57, Yegor Yefremov wrote:
> >> Thanks for the patch. Acquiring a DHCP lease is working now:
> >>
> >> # dhcpcd -d wwan0
> >> dhcpcd-8.0.2 starting
> >> wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
> >> wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
> >> DUID 00:01:00:01:c7:92:bc:92:74:6a:8f:ff:50:55
> >> wwan0: IAID 00:00:00:06
> >> wwan0: delaying IPv6 router solicitation for 0.8 seconds
> >> wwan0: using static address 10.42.112.218/30
> >> wwan0: adding IP address 10.42.112.218/30 broadcast 10.42.112.218
> >> arp_open: wwan0: Invalid argument
> >> arp_announce: Invalid argument
> >> wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' STATIC
> >> forking to background
> >> forked to background, child pid 433
> >>
> >> I've added these lines to the default /etc/dhcpcd.conf file:
> >>
> >> interface wwan0 dhcp
> >> debug
> >>
> >> Though "debug" was ignored i.e. I had to specify it on the command line.
> >
> > debug should appear at the top of dhcpcd.conf - it's not really
> > interface specific
> >
> >> Can I also specify "interface wwan0 dhcp" on the command line?
> >
> > Should be able to
> >
> >> Is it OK that both arp_open and arp_announce fail?
> >
> > No.
> > New patch (supercedes prior, or just apply the ipv4.c part) should
> > silence those errors.
> > Let me know!
>
> Applied as a set of patches:
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=ddbbe8d8c15953ed4fd7e460d30f7a295abfea0d
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=93c5fe76a35343c26232b0c71aaea24bf50a41db
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=07a34ce62c5dd937d32ac003240ecafd963e6ad7
Unfortunately, it is not working. Config file was wrong and the
interface must have been configured before via udhcpc (that's why it
says static address applied). Sorry.
I've corrected the /etc/dhcpcd.conf so that I see the O_DHCP was applied:
# dhcpcd wwan0
dhcpcd-8.0.2 starting
YY: O_DHCP
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:c7:92:bc:92:74:6a:8f:ff:50:55
wwan0: IAID 00:00:00:06
wwan0: delaying IPv6 router solicitation for 0.4 seconds
wwan0: delaying IPv4 for 0.4 seconds
wwan0: soliciting an IPv6 router
wwan0: delaying Router Solicitation for LL address
wwan0: needs a clientid to configure
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' FAIL
timed out
dhcpcd exited
I've sniffed with tcpdump and if catches nothing. I've attached a
sniff for udhcpc.
I'm trying to understand what was made in this patch that adds raw-ip
support to the ISC DHCP [1]. Seems like there is no way to avoid
packet header manipulation.
[1] https://mail.gnome.org/archives/networkmanager-list/2015-December/msg00044.html
Regards,
Yegor
Attachment:
udhcpc-wwan0.pcap
Description: Binary data
Archive administrator: postmaster@marples.name