mcast_image.h 369 B

12345678910111213141516171819202122
  1. #include <stdint.h>
  2. #define PKT_SIZE 2820
  3. struct image_pkt_hdr {
  4. uint32_t resend;
  5. uint32_t totcrc;
  6. uint32_t nr_blocks;
  7. uint32_t blocksize;
  8. uint32_t block_crc;
  9. uint32_t block_nr;
  10. uint32_t pkt_sequence;
  11. uint16_t pkt_nr;
  12. uint16_t nr_pkts;
  13. uint32_t thislen;
  14. uint32_t thiscrc;
  15. };
  16. struct image_pkt {
  17. struct image_pkt_hdr hdr;
  18. unsigned char data[PKT_SIZE];
  19. };