summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add usbmuxd_log_buffer helper for easier debugging of binary payloadslograwMartin Szulecki2014-07-262-6/+53
|
* client: Fix crash that occured when receiving client command from old clientMartin Szulecki2014-05-271-0/+5
|
* Fix detection of new "-V" version argumentMartin Szulecki2014-05-271-1/+1
|
* Fix connection abort if device buffer is fullPeter Wu2014-05-071-3/+4
| | | | | | | | | | | | | | When trying to upload a IPSW filesystem to an iPad, the process would randomly stop somewhere at 3% or 10%. It is possible that the receive buffer of the iPad is full. To prevent erroring out because size == conn->sendable == 0, skip reading from the client. There is a similar case where the clients is ready to accept data, but the device has no data to send. Apply a similar fix there. Hopefully the device is fast enough to reply in the next main loop iteration, otherwise the CPU usage of usbmux will spike because the client socket is ready while there is no data to process...
* utils: Add missing plist_read_from_filename() helperNikias Bassen2014-05-061-0/+25
|
* preflight: Unset preflight callback data when no longer needed to prevent ↵Nikias Bassen2014-04-161-0/+2
| | | | segfault
* Add "--version" option to print version number and exit, useful for bug reportsMartin Szulecki2014-03-271-0/+5
|
* Update command usage output to match best practice and other toolsMartin Szulecki2014-03-271-10/+11
|
* usb-linux: massive read perf improvement with 3 parallel transfersMikkel Kamstrup Erlandsen2014-03-241-34/+73
| | | | | | | | | | By maintaining 3 parallel usb trasfers when reading we get 2-3x more throughput when reading. Without this the usb port is mostly just idling. I get 23mb/s on my system compared to a clean Apple stack that gives me 17mb/s. 3 was chosen because it is simple to hard code, gives very good performance, and have very little impact on out resource consumption.
* usb-linux: add some explanatory comments to usb-linux.cMikkel Kamstrup Erlandsen2014-03-241-0/+5
|
* device/utils: move mstime64() into utils since it is generally usefulMikkel Kamstrup Erlandsen2014-03-243-10/+16
|
* device: fix potential integer overflow in mstime64() on 32 bit systemsMikkel Kamstrup Erlandsen2014-03-241-1/+4
|
* device: more aggresively send ACKs when receiving TCP dataMikkel Kamstrup Erlandsen2014-03-241-49/+66
| | | | | Before this it seemed that we only ever sent ACK when timing out... Looks like a perf double when reading.
* client: add a bunch of comments and function docsMikkel Kamstrup Erlandsen2014-03-242-1/+90
|
* Use plist_dict_set_item() instead of deprecated plist_dict_insert_item()Martin Szulecki2014-03-242-18/+18
|
* device: suppress 'error reading from client (0)' which is not actually an errorNikias Bassen2014-03-131-1/+3
|
* preflight: create preflight worker as detached thread and handle errorsNikias Bassen2014-02-151-1/+12
|
* updated READMENikias Bassen2014-01-251-4/+2
|
* client: fix realloc in send_pkt() that made the buffer smaller instead of largerNikias Bassen2014-01-101-4/+10
|
* device: reduce locking time inside device_get_list() and device_get_count()Nikias Bassen2014-01-091-5/+14
|
* utils: add new collection_copy() functionNikias Bassen2014-01-092-0/+9
|
* removed trailing \n from usbmuxd_log() messagesNikias Bassen2014-01-096-8/+8
|
* device: suppress "No connection for device" if TH_RST is setNikias Bassen2014-01-091-1/+1
|
* device/client: make device_get_list() allocate the result buffer itselfNikias Bassen2014-01-093-25/+26
| | | | | | | Using device_get_count() and device_get_list() separately can return different device counts in case there are devices added to the list inbetween these two function calls. To prevent this, device_get_list() will allocate the buffer by itself.
* device: make device_list access thread safeNikias Bassen2014-01-091-0/+38
|
* utils: collection_add don't double capacity but instead increase by a fixed ↵Nikias Bassen2014-01-091-6/+8
| | | | amount
* client: fix 64-bit crash in process_send due to signed/unsigned fooNikias Bassen2014-01-091-2/+2
|
* conf: fix wrong check for parameter that made SavePairRecord always failNikias Bassen2014-01-071-1/+1
|
* preflight: check for device record before trying to read host idNikias Bassen2013-12-273-11/+47
|
* client: plug several memory leaksNikias Bassen2013-12-271-1/+6
|
* preflight: replace idevice_event_* with thread safe implementationNikias Bassen2013-12-274-12/+31
| | | | | | | | | | | idevice_event_subscribe() calls usbmuxd_subscribe() which will start a thread waiting for device add/remove events. But this implementation is not able to handle more than one "subscription". However the preflight worker will start a thread for _each_ device resulting in a really messed up situation if more than one device is attached at the same time. This fix will use usbmuxd's internal device_remove function calling a preflight callback to make this implementation thread safe.
* increase number of open file descriptorsNikias Bassen2013-12-231-0/+7
| | | | | | When a large number of devices are used, the number of open file descriptors can reach the default system limit. Upon startup we now raise it to a much higher value to give more 'space'.
* enlarge input+output buffer sizes.Nikias Bassen2013-12-231-13/+10
|
* client: implemented ReadBUID, ReadPairRecord, SavePairRecord, and ↵Nikias Bassen2013-12-131-0/+107
| | | | DeletePairRecord commonds
* add support for reading and writing config and pair record filesNikias Bassen2013-12-138-12/+709
|
* make libplist/protov1 support mandatoryNikias Bassen2013-12-132-52/+4
|
* client: return proper error packet on client version mismatchNikias Bassen2013-12-111-14/+11
|
* fix compilation when compiling without plist supportNikias Bassen2013-12-111-0/+2
|
* client: implemented "ListDevices" commandNikias Bassen2013-12-101-12/+55
|
* client: add send_plist_pkt helper to remove code duplicationNikias Bassen2013-12-101-28/+19
|
* main: make sure the non-privileged user has proper access to the config dirNikias Bassen2013-12-101-9/+21
|
* client: also add DeviceID to main dictionary for Attached messageNikias Bassen2013-12-091-0/+1
|
* usb: Output message to show USB configuration changeMartin Szulecki2013-11-041-0/+3
|
* preflight: Add messages to indicate start and finish of preflight processMartin Szulecki2013-11-041-0/+9
|
* preflight: Make device visible during trust dialog pairing and handle unplugMartin Szulecki2013-11-041-5/+27
| | | | | | | The usbmuxd implementation on Win/OS X does allow enumerating and accessing the device during the "trust dialog" pairing process. We now also exit the waiting loop during unplugging of a device while waiting for the trust dialog to be dismissed.
* preflight: Add lockdownd prefix to name of set_untrusted_host_buid()Martin Szulecki2013-11-041-3/+3
|
* udev: Set "deactivated" USB configuration on iOS devices by defaultMartin Szulecki2013-11-041-2/+2
| | | | | | | | | | | With the introduction of iOS 7, devices should start of in the "deactivated" USB configuration "0" by default to not trigger a trust dialog. Once the devices are identified, usbmuxd will set the correct USB configuration itself and immediately run the preflight worker code to ensure a trust relationship with the host is established. This change fixes the trust dialog from appearing during hotplug of paired devices. The last remaining issue is that current kernel code still sets the USB configuration to "1" by default before the udev rules and thus causes multiple connection beeps.
* preflight: define extern userpref_remove_device_recordNikias Bassen2013-10-091-0/+2
|
* preflight: Free version string in all cases to prevent memory leakMartin Szulecki2013-10-091-3/+11
|
* preflight: plug small memory leakNikias Bassen2013-10-081-0/+2
|