1 // Copyright 2017 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 void initialize_status(const char* name, size_t size);
8 void update_status(size_t bytes_so_far);
9 int tftp_xfer(struct sockaddr_in6* addr, const char* fn, const char* name);
10 int netboot_xfer(struct sockaddr_in6* addr, const char* fn, const char* name);
11 
12 #define DEFAULT_TFTP_BLOCK_SZ 1428
13 #define DEFAULT_TFTP_WIN_SZ 1024
14 #define DEFAULT_US_BETWEEN_PACKETS 20
15 
16 extern char* appname;
17 extern int64_t us_between_packets;
18 extern uint16_t* tftp_block_size;
19 extern uint16_t* tftp_window_size;
20