blob: 9111ba39b17aa29e5728f621853940f9e49f2707 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_BRINGUP_BIN_NETSVC_TFTP_H_
#define SRC_BRINGUP_BIN_NETSVC_TFTP_H_
#include <inet6/inet6.h>
#define TFTP_TIMEOUT_SECS 1
zx_time_t tftp_next_timeout();
void tftp_recv(void* data, size_t len, const ip6_addr_t* daddr, uint16_t dport,
const ip6_addr_t* saddr, uint16_t sport);
void tftp_timeout_expired();
bool tftp_has_pending();
void tftp_send_next();
#endif // SRC_BRINGUP_BIN_NETSVC_TFTP_H_