Common/Network: Remove unused constructors
This commit is contained in:
parent
5ce73d9d2e
commit
13957a627c
|
@ -337,13 +337,6 @@ std::vector<u8> ARPPacket::Build() const
|
||||||
|
|
||||||
TCPPacket::TCPPacket() = default;
|
TCPPacket::TCPPacket() = default;
|
||||||
|
|
||||||
TCPPacket::TCPPacket(const MACAddress& destination, const MACAddress& source)
|
|
||||||
{
|
|
||||||
eth_header.destination = destination;
|
|
||||||
eth_header.source = source;
|
|
||||||
eth_header.ethertype = htons(IPV4_ETHERTYPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
TCPPacket::TCPPacket(const MACAddress& destination, const MACAddress& source,
|
TCPPacket::TCPPacket(const MACAddress& destination, const MACAddress& source,
|
||||||
const sockaddr_in& from, const sockaddr_in& to, u32 seq, u32 ack, u16 flags)
|
const sockaddr_in& from, const sockaddr_in& to, u32 seq, u32 ack, u16 flags)
|
||||||
{
|
{
|
||||||
|
@ -406,13 +399,6 @@ u16 TCPPacket::Size() const
|
||||||
|
|
||||||
UDPPacket::UDPPacket() = default;
|
UDPPacket::UDPPacket() = default;
|
||||||
|
|
||||||
UDPPacket::UDPPacket(const MACAddress& destination, const MACAddress& source)
|
|
||||||
{
|
|
||||||
eth_header.destination = destination;
|
|
||||||
eth_header.source = source;
|
|
||||||
eth_header.ethertype = htons(IPV4_ETHERTYPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
UDPPacket::UDPPacket(const MACAddress& destination, const MACAddress& source,
|
UDPPacket::UDPPacket(const MACAddress& destination, const MACAddress& source,
|
||||||
const sockaddr_in& from, const sockaddr_in& to, const std::vector<u8>& payload)
|
const sockaddr_in& from, const sockaddr_in& to, const std::vector<u8>& payload)
|
||||||
{
|
{
|
||||||
|
|
|
@ -194,7 +194,6 @@ static_assert(sizeof(ARPPacket) == ARPPacket::SIZE);
|
||||||
struct TCPPacket
|
struct TCPPacket
|
||||||
{
|
{
|
||||||
TCPPacket();
|
TCPPacket();
|
||||||
TCPPacket(const MACAddress& destination, const MACAddress& source);
|
|
||||||
TCPPacket(const MACAddress& destination, const MACAddress& source, const sockaddr_in& from,
|
TCPPacket(const MACAddress& destination, const MACAddress& source, const sockaddr_in& from,
|
||||||
const sockaddr_in& to, u32 seq, u32 ack, u16 flags);
|
const sockaddr_in& to, u32 seq, u32 ack, u16 flags);
|
||||||
std::vector<u8> Build();
|
std::vector<u8> Build();
|
||||||
|
@ -213,7 +212,6 @@ struct TCPPacket
|
||||||
struct UDPPacket
|
struct UDPPacket
|
||||||
{
|
{
|
||||||
UDPPacket();
|
UDPPacket();
|
||||||
UDPPacket(const MACAddress& destination, const MACAddress& source);
|
|
||||||
UDPPacket(const MACAddress& destination, const MACAddress& source, const sockaddr_in& from,
|
UDPPacket(const MACAddress& destination, const MACAddress& source, const sockaddr_in& from,
|
||||||
const sockaddr_in& to, const std::vector<u8>& payload);
|
const sockaddr_in& to, const std::vector<u8>& payload);
|
||||||
std::vector<u8> Build();
|
std::vector<u8> Build();
|
||||||
|
|
Loading…
Reference in New Issue