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 EthernetFrameHeader ethernetReqHeader,
|
||||||
const Ipv4Header ipv4ReqHeader,
|
const Ipv4Header ipv4ReqHeader,
|
||||||
const UdpDatagramHeader udpReqHeader,
|
const UdpDatagramHeader udpReqHeader,
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include <cstdint>
|
||||||
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
struct EthernetFrameHeader;
|
||||||
|
struct Ipv4Header;
|
||||||
|
struct UdpDatagramHeader;
|
||||||
|
|
||||||
namespace Net::Tftp {
|
namespace Net::Tftp {
|
||||||
const size_t TFTP_BLOCK_SIZE = 512;
|
const size_t TFTP_BLOCK_SIZE = 512;
|
||||||
|
|
||||||
|
@ -69,7 +75,7 @@ namespace Net::Tftp {
|
||||||
TftpDataPacket& out, const uint8_t* buffer, size_t length);
|
TftpDataPacket& out, const uint8_t* buffer, size_t length);
|
||||||
};
|
};
|
||||||
|
|
||||||
void HandleTftpDatagram(
|
void HandlePacket(
|
||||||
const EthernetFrameHeader ethernetReqHeader,
|
const EthernetFrameHeader ethernetReqHeader,
|
||||||
const Ipv4Header ipv4ReqHeader,
|
const Ipv4Header ipv4ReqHeader,
|
||||||
const UdpDatagramHeader udpReqHeader,
|
const UdpDatagramHeader udpReqHeader,
|
||||||
|
|
|
@ -63,7 +63,7 @@ void HandleUdpDatagram(
|
||||||
}
|
}
|
||||||
else if (udpHeader.destinationPort == UDP_PORT_TFTP)
|
else if (udpHeader.destinationPort == UDP_PORT_TFTP)
|
||||||
{
|
{
|
||||||
Net::Tftp::HandleTftpDatagram(
|
Net::Tftp::HandlePacket(
|
||||||
ethernetHeader,
|
ethernetHeader,
|
||||||
ipv4Header,
|
ipv4Header,
|
||||||
udpHeader,
|
udpHeader,
|
||||||
|
|
Loading…
Reference in a new issue