Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. [PATCH v2 3/3] Prevent dhcp client from running when gadget
      tech is tethered (Ryan Schaefer)


----------------------------------------------------------------------

Message: 1
Date: Mon,  4 Jun 2018 10:37:31 -0700
From: Ryan Schaefer <[email protected]>
To: [email protected],     [email protected]
Cc: Ryan Schaefer <[email protected]>
Subject: [PATCH v2 3/3] Prevent dhcp client from running when gadget
        tech is tethered
Message-ID:
        <[email protected]>

From: Ryan Schaefer <[email protected]>

gadget_tethering was not being set when tethering is enabled or
disabled. This resulted in the dhcp client incorrectly running in
gadget.c:add_network() when tethering is enabled. This change makes the
gadget plugin operate the same as the ethernet plugin.
---
 plugins/gadget.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/gadget.c b/plugins/gadget.c
index 94f6648..1b44bbb 100644
--- a/plugins/gadget.c
+++ b/plugins/gadget.c
@@ -270,6 +270,8 @@ static void gadget_tech_enable_tethering(struct 
connman_technology *technology,
                connman_inet_ifup(index);
 
                connman_inet_add_to_bridge(index, bridge);
+
+               gadget_tethering = true;
        }
 }
 
@@ -286,6 +288,8 @@ static void gadget_tech_disable_tethering(struct 
connman_technology *technology,
                connman_inet_ifdown(index);
 
                connman_technology_tethering_notify(technology, false);
+
+               gadget_tethering = false;
        }
 }
 
-- 
2.7.4



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 32, Issue 2
**************************************

Reply via email to