|
|
@ -113,9 +113,9 @@ GNU General Public License for more details. |
|
|
|
typedef struct netsplit_chain_packet_s |
|
|
|
typedef struct netsplit_chain_packet_s |
|
|
|
{ |
|
|
|
{ |
|
|
|
// bool vector
|
|
|
|
// bool vector
|
|
|
|
unsigned int recieved_v[8]; |
|
|
|
uint32_t recieved_v[8]; |
|
|
|
// serial number
|
|
|
|
// serial number
|
|
|
|
unsigned int id; |
|
|
|
uint32_t id; |
|
|
|
byte data[NET_MAX_PAYLOAD]; |
|
|
|
byte data[NET_MAX_PAYLOAD]; |
|
|
|
byte received; |
|
|
|
byte received; |
|
|
|
byte count; |
|
|
|
byte count; |
|
|
@ -124,10 +124,10 @@ typedef struct netsplit_chain_packet_s |
|
|
|
// raw packet format
|
|
|
|
// raw packet format
|
|
|
|
typedef struct netsplit_packet_s |
|
|
|
typedef struct netsplit_packet_s |
|
|
|
{ |
|
|
|
{ |
|
|
|
unsigned int signature; // 0xFFFFFFFE
|
|
|
|
uint32_t signature; // 0xFFFFFFFE
|
|
|
|
unsigned int length; |
|
|
|
uint32_t length; |
|
|
|
unsigned int part; |
|
|
|
uint32_t part; |
|
|
|
unsigned int id; |
|
|
|
uint32_t id; |
|
|
|
// max 256 parts
|
|
|
|
// max 256 parts
|
|
|
|
byte count; |
|
|
|
byte count; |
|
|
|
byte index; |
|
|
|
byte index; |
|
|
@ -138,8 +138,8 @@ typedef struct netsplit_packet_s |
|
|
|
typedef struct netsplit_s |
|
|
|
typedef struct netsplit_s |
|
|
|
{ |
|
|
|
{ |
|
|
|
netsplit_chain_packet_t packets[NETSPLIT_BACKUP]; |
|
|
|
netsplit_chain_packet_t packets[NETSPLIT_BACKUP]; |
|
|
|
integer64 total_received; |
|
|
|
uint64_t total_received; |
|
|
|
integer64 total_received_uncompressed; |
|
|
|
uint64_t total_received_uncompressed; |
|
|
|
} netsplit_t; |
|
|
|
} netsplit_t; |
|
|
|
|
|
|
|
|
|
|
|
// packet splitting
|
|
|
|
// packet splitting
|
|
|
|