diff options
Diffstat (limited to 'mcast_image.h')
-rw-r--r-- | mcast_image.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcast_image.h b/mcast_image.h new file mode 100644 index 0000000..e2048b6 --- /dev/null +++ b/mcast_image.h @@ -0,0 +1,18 @@ +#include <stdint.h> + +#define PKT_SIZE 1400 + +struct image_pkt_hdr { + 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]; +}; |