Fix errors in editor in net-tftp.h

This commit is contained in:
Sijmen 2020-12-27 22:22:46 +01:00
parent 9638a0dc3d
commit 8bde798c88
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48
3 changed files with 9 additions and 3 deletions

View file

@ -114,7 +114,7 @@ namespace Net::Tftp
);
}
void HandleTftpDatagram(
void HandlePacket(
const EthernetFrameHeader ethernetReqHeader,
const Ipv4Header ipv4ReqHeader,
const UdpDatagramHeader udpReqHeader,

View file

@ -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,

View file

@ -63,7 +63,7 @@ void HandleUdpDatagram(
}
else if (udpHeader.destinationPort == UDP_PORT_TFTP)
{
Net::Tftp::HandleTftpDatagram(
Net::Tftp::HandlePacket(
ethernetHeader,
ipv4Header,
udpHeader,