From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: RE: [PATCH 02/12] gprs: driver interface changes for IPv6
Date: Mon, 07 Feb 2011 11:09:17 -0800 [thread overview]
Message-ID: <1297105757.1520.436.camel@aeonflux> (raw)
In-Reply-To: <CB0EE8641411214CBAFF8AEBB26ABCEC2985A8@008-AM1MPN1-001.mgdnok.nokia.com>
[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]
Hi Mika,
> > > +enum ofono_gprs_addrconf {
> > > + OFONO_GPRS_ADDRCONF_NONE,
> > > + OFONO_GPRS_ADDRCONF_STATIC,
> > > + OFONO_GPRS_ADDRCONF_DHCP,
> > > +};
> > > +
> >
> > What exactly is the _NONE addrconf for? And why don't we use
> > a gboolean
> > here like before?
>
> Neither "static" nor "DHCP" makes sense for IPv6. If we have an IPv6 only context, the "Method" property will not show up at all.
>
> I also wanted to leave the door open for additional address configuration protocols in case e.g. IPv6 capable modems with virtual ethernet intefaces require some weird quirks. I also felt this was a bit cleaner, although that is a matter of opinion, of course.
>
> Normally, IPv6 addresses and routes are autoconfigured using IPv6 stateless address autoconfiguration followed optionally by DHCPv6 to get additional settings. The kernel actually starts stateless address autoconfiguration immediately when the interface is configured up (which oFono does), assuming the interface already has a link-local IPv6 address (which all Ethernet interface do have, as it is calculated from the MAC address and added automatically).
>
> Point-to-point interfaces, on the other, require the link-local address to be added manually to the interface before the autoconfiguration can happen. oFono should probably add the address to be consistent with Ethernet interfaces.
I am not sure we really wanna be consistent with how Ethernet works
since we are not actually Ethernet.
So I can see benefits for having ConnMan control the link-local in case
of point-to-point, but then I also do see the benefit oFono doing it.
We might have to spin of ideas and see what is the most logical one and
what works best. Especially also in the context of LTE support in the
future.
> The upshot would be that IPv6 could be autoconfigured immediately without connman's intervention. IPv6 does not have private address spaces, so in theory connman does not really have to care about IPv6 addresses and routes. However, the optional DHCPv6 step would probably be controlled by connman. Configuration of IPv6 tethering would be another optional followup step controlled by connman.
Yes, DHCPv6 step needs to be done by ConnMan. We do not have DHCPv6
support right now. We only plan to use it for extra settings like
proxies, timeservers etc.
> On the other hand, if we want connman to be fully in charge, we could change oFono to always leave the network interface down and let connman do everything. Marcels input on this would be welcome as well.
This is something we need to figure out. And of course this all needs to
be aligned with IPv4 and IPv6. Right now we are treating this similar to
how wpa_supplicant for WiFi does this.
So going back to potential LTE and IMS support; if that runs IPv6 then
it might make sense to just autoconfigure it without ConnMan
interaction.
Regards
Marcel
next prev parent reply other threads:[~2011-02-07 19:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 9:03 [PATCH 0/12] IPv6 support Mika Liljeberg
2011-02-03 9:03 ` [PATCH 01/12] gprs: Update documentation for IPv6 Mika Liljeberg
2011-02-03 9:03 ` [PATCH 02/12] gprs: driver interface changes " Mika Liljeberg
2011-02-04 17:24 ` Denis Kenzior
2011-02-07 9:55 ` Mika.Liljeberg
2011-02-07 16:32 ` Denis Kenzior
2011-02-08 8:55 ` Mika.Liljeberg
2011-02-07 19:09 ` Marcel Holtmann [this message]
2011-02-08 8:36 ` Mika.Liljeberg
2011-02-03 9:03 ` [PATCH 03/12] gprs: core support " Mika Liljeberg
2011-02-04 17:50 ` Denis Kenzior
2011-02-07 10:12 ` Mika.Liljeberg
2011-02-03 9:03 ` [PATCH 04/12] test: modify test scripts " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 05/12] isimodem: IPv6 support Mika Liljeberg
2011-02-03 9:03 ` [PATCH 06/12] atmodem: update to new gprs context interface Mika Liljeberg
2011-02-03 9:03 ` [PATCH 07/12] huaweimodem: " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 08/12] mbmmodem: " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 09/12] hsomodem: " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 10/12] ifxmodem: " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 11/12] stemodem: " Mika Liljeberg
2011-02-03 9:03 ` [PATCH 12/12] phonesim: add IPv6 support Mika Liljeberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297105757.1520.436.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox