From 817c1bc0b61d9a35422cc9add67d0666ba72aebd Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 9 Aug 2007 16:23:56 +0800 Subject: Add utilities for multicast send/receive of MTD images. Signed-off-by: David Woodhouse --- mcast_image.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mcast_image.h (limited to 'mcast_image.h') 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 + +#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]; +}; -- cgit v1.2.3