aboutsummaryrefslogtreecommitdiff
path: root/mcast_image.h
blob: 96aa75208c59a20019263db7daf7b824b6faae1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdint.h>

#define PKT_SIZE 1400

struct image_pkt_hdr {
	uint32_t resend;
	uint32_t totcrc;
	uint32_t nr_blocks;
	uint32_t blocksize;
	uint32_t block_nr;
	uint32_t block_ofs;
	uint32_t thislen;
	uint32_t thiscrc;
};

struct image_pkt {
	struct image_pkt_hdr hdr;
	unsigned char data[PKT_SIZE];
};