diff options
author | Martin Szulecki | 2012-07-17 18:50:27 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 18:50:27 +0200 |
commit | 96ea29a095c5fbb68927829e8cfcf97e39595bfe (patch) | |
tree | 0ec8b487c7fdafe43a6c1d72c7eb7dda344db6ff /src | |
parent | 68e08c82e0ec549ce491786a95914d478d864c89 (diff) | |
download | idevicerestore-96ea29a095c5fbb68927829e8cfcf97e39595bfe.tar.gz idevicerestore-96ea29a095c5fbb68927829e8cfcf97e39595bfe.tar.bz2 |
asr: Add macros for other values of validation request
Diffstat (limited to 'src')
-rw-r--r-- | src/asr.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -28,8 +28,12 @@ #include "asr.h" #include "idevicerestore.h" +#define ASR_VERSION 1 +#define ASR_STREAM_ID 1 #define ASR_PORT 12345 #define ASR_BUFFER_SIZE 65536 +#define ASR_FEC_SLICE_STRIDE 40 +#define ASR_PACKETS_PER_FEC 25 #define ASR_PAYLOAD_PACKET_SIZE 1450 #define ASR_CHECKSUM_CHUNK_SIZE 131072 @@ -204,12 +208,12 @@ int asr_perform_validation(asr_client_t asr, const char* filesystem) { if (asr->checksum_chunks) { plist_dict_insert_item(packet_info, "Checksum Chunk Size", plist_new_uint(ASR_CHECKSUM_CHUNK_SIZE)); } - plist_dict_insert_item(packet_info, "FEC Slice Stride", plist_new_uint(40)); + plist_dict_insert_item(packet_info, "FEC Slice Stride", plist_new_uint(ASR_FEC_SLICE_STRIDE)); plist_dict_insert_item(packet_info, "Packet Payload Size", plist_new_uint(ASR_PAYLOAD_PACKET_SIZE)); - plist_dict_insert_item(packet_info, "Packets Per FEC", plist_new_uint(25)); + plist_dict_insert_item(packet_info, "Packets Per FEC", plist_new_uint(ASR_PACKETS_PER_FEC)); plist_dict_insert_item(packet_info, "Payload", payload_info); - plist_dict_insert_item(packet_info, "Stream ID", plist_new_uint(1)); - plist_dict_insert_item(packet_info, "Version", plist_new_uint(1)); + plist_dict_insert_item(packet_info, "Stream ID", plist_new_uint(ASR_STREAM_ID)); + plist_dict_insert_item(packet_info, "Version", plist_new_uint(ASR_VERSION)); if (asr_send(asr, packet_info)) { error("ERROR: Unable to sent packet information to ASR\n"); |