Go to the documentation of this file.
18 #ifndef __LIB_LIBNET_ICMPSOCKET_H
19 #define __LIB_LIBNET_ICMPSOCKET_H
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt)
Process incoming network packet.
ICMP::Header m_reply
Reply.
u32 ProcessID
Process Identification Number.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Send ICMP request.
void setReply(const ICMP::Header *reply)
Set ICMP reply.
const IPV4::Address getAddress() const
Get associated IP host.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
virtual ~ICMPSocket()
Destructor.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read ICMP response.
Network socket represents a single logical connection on a protocol.
Result
Result code for filesystem Actions.
ICMPSocket(const u32 inode, ICMP *icmp, const ProcessID pid)
Constructor.
Represents a network packet.
ICMP * m_icmp
ICMP protocol instance.
Internet Control Message Protocol (ICMP) socket.
Internet Control Message Protocol (ICMP)