Re: [v6ops] DHCPv6 PD client on cellular on Android

Ted Lemon <mellon@fugue.com> Mon, 17 July 2017 18:07 UTC

Return-Path: <mellon@fugue.com>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AFA2F12EC1D for <v6ops@ietfa.amsl.com>; Mon, 17 Jul 2017 11:07:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id grD7i62F9GB5 for <v6ops@ietfa.amsl.com>; Mon, 17 Jul 2017 11:07:49 -0700 (PDT)
Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com [IPv6:2607:f8b0:400e:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3CF7C12EB5D for <v6ops@ietf.org>; Mon, 17 Jul 2017 11:07:48 -0700 (PDT)
Received: by mail-pg0-x230.google.com with SMTP id k14so83756970pgr.0 for <v6ops@ietf.org>; Mon, 17 Jul 2017 11:07:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1o4wAmQMXtUkYETZUyA201wFBcRJ91Y2wv7gQD/gvAk=; b=n+lf2R2E3Z78teU5Ey1Jd0tXLwiLoS/65VEUOHyz9/H/HdmeHkMeP/tcY3BlQ2oxVN DTpBKUCXOYpVzjbUFqeWjyfEzcxMMm9gth4hN2ntaWFgtj4QF0QKXu7V4kUQtVFSgkeY he/KmWAHUbjf0bmi3Andifksl7s+9icDlt6piNjQeE1MBGKAnwakcg1eloMl+UplTmKz onZeQ/1Yad00ca1SodkgewEeqSe2h2H3LwRyrcDkuFwmftp22+YuQaLF9vEvkrM4AH0T EOoHxrooaxxT9RrjKY13pPUe4OZjpuK2i/AcClR/I1cTJAmCf63o5LaV1oEvYf7uMN0m L5Kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1o4wAmQMXtUkYETZUyA201wFBcRJ91Y2wv7gQD/gvAk=; b=YiHVyDeSnZWpRStBvEDTtJSsdllXLTFCq5QHj4iVWxgsF9KmT4EdH5rJh/+qcgm6Ir qAiMfxCxZEtPg3g6kGE5Pv96odZBYsl4jCp7VAzwLKhdhG4hMkry+5NhdHuP+GV2yV7Z nRuvoq7IVmPIL2HitbcWpUvutnQBhk23iaRZ0uASahqtBiCviCr+gi+PhJZi3z/DSNkm fKlciFOCFo0pk/vUuMVjEITYJwpoYCZwwX6rSxg8HHVAT06LICzwkMwQddRDAjy1K9eh +RBpf7CpXO8Y/Tg7kO/jPB1fyyeg6pqZY14VQQNykRF4stBynWRRtHQbUo74ETML1Rmp rnqw==
X-Gm-Message-State: AIVw110LW3XeJloOtBN9WRz9IO1WUSU2vMuyMmrHuixUielUa9gfUKE4 mQf70iR+BPMHKIYxAymRqtudIaA1v/QJ
X-Received: by 10.99.167.79 with SMTP id w15mr29986057pgo.22.1500314868496; Mon, 17 Jul 2017 11:07:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.181.42 with HTTP; Mon, 17 Jul 2017 11:07:07 -0700 (PDT)
In-Reply-To: <9948cb75-6c11-9071-697f-a79702472132@gmail.com>
References: <7537deef-8f87-5187-1e44-595ac63a16ca@gmail.com> <20170706011605.1BEDB7D9F1D6@rock.dv.isc.org> <2c145a79-ad0a-59fd-0300-f427d2fbd6f6@gmail.com> <9948cb75-6c11-9071-697f-a79702472132@gmail.com>
From: Ted Lemon <mellon@fugue.com>
Date: Mon, 17 Jul 2017 20:07:07 +0200
Message-ID: <CAPt1N1=wz91yXS0doYXKZ1Mj_0HPobYapiB2BZJwiHTQ7AYckA@mail.gmail.com>
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Cc: IPv6 Ops WG <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c1bdaa4c9d68305548746d2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/9rpPmnlK82UZwYkYgv60xk77E-A>
Subject: Re: [v6ops] DHCPv6 PD client on cellular on Android
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Jul 2017 18:07:52 -0000

Understood.   The issue here is that the ISC client is using bpf (or lpf)
to send packets rather than using the Linux stack.   Try compiling it with
#define USE_SOCKETS and see if the behavior changes.

On Mon, Jul 17, 2017 at 6:26 PM, Alexandre Petrescu <
alexandre.petrescu@gmail.com> wrote:

> Well, this is to note that we too (Fred mentioned it too earlier) made
> the ISC DHCPv6 dhclient work on Android, including DHCPv6 Solicit that
> requests Prefix Delegation.
>
> (but we still dont have a response to DHCP Solicit on cellular link).
>
> Alex
>
> Le 06/07/2017 à 18:32, Alexandre Petrescu a écrit :
>
>> Mark, noted, will try.
>>
>> Just a note...
>>
>> Le 06/07/2017 à 03:16, Mark Andrews a écrit :
>>
>>>
>>> In message <7537deef-8f87-5187-1e44-595ac63a16ca@gmail.com>,
>>> Alexandre Petrescu writes:
>>>
>>>> Hello,
>>>>
>>>> We discussed extensively about the potential use of DHCPv6
>>>> Prefix Delegation on cellular links.
>>>>
>>>> The chicken issue is the lack of DHCPv6 PD software on typical
>>>> User Equipment.  For example, there is no DHCPv6-PD app on
>>>> Android.  The egg issue is the lack of operator support of
>>>> DHCPv6-PD towards the User Terminal.  For example, there is no
>>>> cellular operator answering to DHCPv6-PD requests issued by the
>>>> User Terminal.
>>>>
>>>> To address the chicken issue, we started with an ISC DHCP open
>>>> software client, which does implement Prefix Delegation.  It can
>>>> be (cross)compiled on various platforms; then type "./dhclient -6
>>>> -P"; this sends an DHCPv6 Solicit Identity Associtaion for Prefix
>>>> Delegation message on the interface.
>>>>
>>>> However, whereas this software runs ok on interfaces such as
>>>> Ethernet, USBnet and WiFi interfaces, it breaks if run on the
>>>> cellular interface of some IoT cellular platform.  The error can
>>>> be corrected by the quick-and-dirty solution below.
>>>>
>>>
>>> The hack would be better as
>>>
>>> #ifdef ARPHRD_XXXX case ARPHRD_XXXX: hw->hlen = 7; hw->hbuf[0] =
>>> HTYPE_ETHER; memcpy(&hw->hbuf[1], sa->sa_data, 6); break; #endif
>>> default: log_fatal("Unsupported device type %ld for \"%s\"", (long
>>> int)sa->sa_family, name); break;
>>>
>>> with ARPHRD_XXXX being replaced by the correct macro for 503 from
>>> <net/if_arp.h>.  Something like that is at least portable.
>>>
>>
>> But it means when I go to other platform will have to modify again
>> the ISC client source code?
>>
>> In cellular terminals there are so many non-IEEE different kinds of
>> links.
>>
>> Other clients work out of the box on this - I agree with you, strange
>> - "rmnet0" interface.
>>
>> Alex
>>
>>
>>> As for the rest of it I have no idea about the presented hardware
>>> address of this type so I don't know it the rest of it make sense.
>>>
>>> Alex
>>>>
>>>> ------------------------------------------------------------
>>>> ------------
>>>>
>>>>
>>>> The error says "//UNSUPPORTED DEVICE TYPE 503 FOR RMNET0."
>
>> dhcp-4.3.5 ./common/lpf.c line number: 551
>>>>
>>>> //default: //      log_fatal("Unsupported device type %ld for
>>>> \"%s\"", //                (long int)sa->sa_family, name); default:
>>>> hw->hlen = 7; hw->hbuf[0] = HTYPE_ETHER; memcpy(&hw->hbuf[1], sa->sa_data,
>>>> 6); break;
>>>>
>>>> (two programmers worked this out).
>>>>
>>>> Alex
>>>>
>>>> _______________________________________________ v6ops mailing
>>>> list v6ops@ietf.org https://www.ietf.org/mailman/listinfo/v6ops
>>>>
>>>
>> _______________________________________________ v6ops mailing list
>> v6ops@ietf.org https://www.ietf.org/mailman/listinfo/v6ops
>>
>
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops
>