summaryrefslogtreecommitdiffstats
path: root/libqdb
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2017-03-02 12:34:52 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2017-05-02 11:47:27 +0000
commitd96efc1a528f38c1da6830eadd9d096a49495d08 (patch)
tree387c352de97ebba767edd926559ec78e713d1355 /libqdb
parente1e7ff8f1fd0558559321066cedd62e729621175 (diff)
Configure DHCP server on device before handshake
Change the procedure for a newly detected device: First configure the network and then do the handshake for the device information. The configuring the network part is new and incorporates a new service NetworkConfigurationService. On the device it relies on a script b2qt-gadget-network.sh (or as specified in a command line parameter) which does the actual configuring of the USB network interface. The network configuration to apply is selected from a list of hardcoded candidates from the private use IPv4 ranges available. They are checked against the existing networks on the host and an unused one is picked. On the device the USB interface is configured to use this network and to act as a DHCP server for it. Host will then pick up an IP from this DHCP server automatically. Previous configuration of the host network is thus not necessary and is removed. Task-number: QTBUG-58614 Change-Id: I6a4ed34ef7d5cba9e55e6fa4f07725bb3c00d795 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'libqdb')
-rw-r--r--libqdb/protocol/services.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqdb/protocol/services.h b/libqdb/protocol/services.h
index b25b928..f9ac631 100644
--- a/libqdb/protocol/services.h
+++ b/libqdb/protocol/services.h
@@ -30,6 +30,7 @@ enum ServiceTag : uint32_t
{
EchoTag = 1,
HandshakeTag,
+ NetworkConfigurationTag,
};
inline