diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-08-09 16:23:56 +0800 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-09 16:23:56 +0800 |
commit | 817c1bc0b61d9a35422cc9add67d0666ba72aebd (patch) | |
tree | af4f71c97910e2718ff095164af68cb8018676e9 /mcast_image.h | |
parent | 2c629e07b87746d49e267db286f096541ef01d90 (diff) |
Add utilities for multicast send/receive of MTD images.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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]; +}; |