aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcast_image.h1
-rw-r--r--serve_image.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/mcast_image.h b/mcast_image.h
index e2048b6..96aa752 100644
--- a/mcast_image.h
+++ b/mcast_image.h
@@ -3,6 +3,7 @@
#define PKT_SIZE 1400
struct image_pkt_hdr {
+ uint32_t resend;
uint32_t totcrc;
uint32_t nr_blocks;
uint32_t blocksize;
diff --git a/serve_image.c b/serve_image.c
index b016d63..b1875b1 100644
--- a/serve_image.c
+++ b/serve_image.c
@@ -111,6 +111,7 @@ int main(int argc, char **argv)
nr_blocks = st.st_size / erasesize;
+ pktbuf.hdr.resend = 0;
pktbuf.hdr.totcrc = htonl(crc32(-1, image, st.st_size));
pktbuf.hdr.nr_blocks = htonl(nr_blocks);
pktbuf.hdr.blocksize = htonl(erasesize);