[PATCH ipv6 v2 12/15] service: Change IPv4 state when address is released.
--- src/service.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 2dff83a..ff20e42 100644 --- a/src/service.c +++ b/src/service.c @@ -4202,6 +4202,12 @@ static void service_ip_release(struct connman_ipconfig *ipconfig) CONNMAN_SERVICE_STATE_DISCONNECT, CONNMAN_IPCONFIG_TYPE_IPV6); + if (type == CONNMAN_IPCONFIG_TYPE_IPV4 && + method == CONNMAN_IPCONFIG_METHOD_OFF) + __connman_service_indicate_state(service, + CONNMAN_SERVICE_STATE_DISCONNECT, + CONNMAN_IPCONFIG_TYPE_IPV4); + settings_changed(service); } -- 1.7.0.4 ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: [PATCH ipv6 v2 12/15] service: Change IPv4 state when address is released.
Hi Jukka, On Tue, Feb 08, 2011 at 12:30:15PM +0200, Jukka Rissanen wrote: > --- > src/service.c |6 ++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/src/service.c b/src/service.c > index 2dff83a..ff20e42 100644 > --- a/src/service.c > +++ b/src/service.c > @@ -4202,6 +4202,12 @@ static void service_ip_release(struct connman_ipconfig > *ipconfig) > CONNMAN_SERVICE_STATE_DISCONNECT, > CONNMAN_IPCONFIG_TYPE_IPV6); > > + if (type == CONNMAN_IPCONFIG_TYPE_IPV4 && > + method == CONNMAN_IPCONFIG_METHOD_OFF) > + __connman_service_indicate_state(service, > + CONNMAN_SERVICE_STATE_DISCONNECT, > + CONNMAN_IPCONFIG_TYPE_IPV4); > + Just so I understand: This is for the case where you manually turn IPv4 off, right ? Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
RE: [PATCH ipv6 v2 12/15] service: Change IPv4 state when address is released.
Hi Samuel, ext Samuel Ortiz wrote: > Hi Jukka, > > On Tue, Feb 08, 2011 at 12:30:15PM +0200, Jukka Rissanen wrote: >> --- >> src/service.c |6 ++ >> 1 files changed, 6 insertions(+), 0 deletions(-) >> >> diff --git a/src/service.c b/src/service.c index 2dff83a..ff20e42 >> 100644 --- a/src/service.c >> +++ b/src/service.c >> @@ -4202,6 +4202,12 @@ static void service_ip_release(struct >> connman_ipconfig *ipconfig) >> CONNMAN_SERVICE_STATE_DISCONNECT, >> CONNMAN_IPCONFIG_TYPE_IPV6); >> >> +if (type == CONNMAN_IPCONFIG_TYPE_IPV4 && >> +method == CONNMAN_IPCONFIG_METHOD_OFF) >> +__connman_service_indicate_state(service, >> +CONNMAN_SERVICE_STATE_DISCONNECT, >> +CONNMAN_IPCONFIG_TYPE_IPV4); >> + > Just so I understand: This is for the case where you manually turn > IPv4 off, right ? > Correct. Jukka ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman