Fix errors in editor in net-tftp.h
This commit is contained in:
parent
9638a0dc3d
commit
8bde798c88
3 changed files with 9 additions and 3 deletions
|
@ -114,7 +114,7 @@ namespace Net::Tftp
|
|||
);
|
||||
}
|
||||
|
||||
void HandleTftpDatagram(
|
||||
void HandlePacket(
|
||||
const EthernetFrameHeader ethernetReqHeader,
|
||||
const Ipv4Header ipv4ReqHeader,
|
||||
const UdpDatagramHeader udpReqHeader,
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct EthernetFrameHeader;
|
||||
struct Ipv4Header;
|
||||
struct UdpDatagramHeader;
|
||||
|
||||
namespace Net::Tftp {
|
||||
const size_t TFTP_BLOCK_SIZE = 512;
|
||||
|
||||
|
@ -69,7 +75,7 @@ namespace Net::Tftp {
|
|||
TftpDataPacket& out, const uint8_t* buffer, size_t length);
|
||||
};
|
||||
|
||||
void HandleTftpDatagram(
|
||||
void HandlePacket(
|
||||
const EthernetFrameHeader ethernetReqHeader,
|
||||
const Ipv4Header ipv4ReqHeader,
|
||||
const UdpDatagramHeader udpReqHeader,
|
||||
|
|
|
@ -63,7 +63,7 @@ void HandleUdpDatagram(
|
|||
}
|
||||
else if (udpHeader.destinationPort == UDP_PORT_TFTP)
|
||||
{
|
||||
Net::Tftp::HandleTftpDatagram(
|
||||
Net::Tftp::HandlePacket(
|
||||
ethernetHeader,
|
||||
ipv4Header,
|
||||
udpHeader,
|
||||
|
|
Loading…
Reference in a new issue