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
7void initialize_status(const char* name, size_t size);
8void update_status(size_t bytes_so_far);
9int tftp_xfer(struct sockaddr_in6* addr, const char* fn, const char* name);
10int 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
16extern char* appname;
17extern int64_t us_between_packets;
18extern uint16_t* tftp_block_size;
19extern uint16_t* tftp_window_size;
20
21