/** ****************************************************************************** * @file LwIP/LwIP_TFTP_Server/Inc/tftputils.h * @author MCD Application Team * @brief tftp utils header file. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */#ifndef__TFTP_UTILS_H_#define__TFTP_UTILS_H_#include"tftpserver.h"tftp_opcodetftp_decode_op(char*buf);voidtftp_extract_filename(char*fname,char*buf);u16_ttftp_extract_block(char*buf);voidtftp_set_opcode(char*buffer,tftp_opcodeopcode);voidtftp_set_errorcode(char*buffer,tftp_errorcodeerrCode);voidtftp_set_errormsg(char*buffer,char*errormsg);u32_ttftp_is_correct_ack(char*buf,intblock);voidtftp_set_data_message(char*packet,char*buf,intbuflen);voidtftp_set_block(char*packet,u16_tblock);/* ... */#endif