aboutsummaryrefslogtreecommitdiff
path: root/serve_image.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-08-09 21:44:16 +0800
committerDavid Woodhouse <dwmw2@infradead.org>2007-08-09 21:44:16 +0800
commit015a84d3000402651c50e513d7492900a2cc8ec1 (patch)
tree1f3dd2eb0e84aa733ac9ffb3513c235cb15492af /serve_image.c
parent817c1bc0b61d9a35422cc9add67d0666ba72aebd (diff)
Change multicast protocol to allow for a resending flag
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'serve_image.c')
-rw-r--r--serve_image.c1
1 files changed, 1 insertions, 0 deletions
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);