Go to the documentation of this file.
18 #include <FreeNOS/API/ProcessID.h>
FileSystem::Result lookupAddress(const IPV4::Address *ipAddr, Ethernet::Address *ethAddr)
Lookup Ethernet address for an IP.
virtual ~ARPSocket()
Destructor.
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt)
Process incoming network packet.
static void * set(void *dest, int ch, unsigned count)
Fill memory with a constant byte.
Ethernet::Address m_ethAddr
Ethernet address for reply.
#define DEBUG(msg)
Output a debug message to standard output.
Ethernet network address.
IPV4::Address m_ipAddr
IPV4 address for request.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Network socket represents a single logical connection on a protocol.
Result
Result code for filesystem Actions.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Send ARP request.
ARP * m_arp
ARP protocol instance.
FileSystem::Result read(void *buffer, const Size size, const Size offset=ZERO)
Read bytes from the I/O buffer.
FileSystem::Result write(const void *buffer, const Size size, const Size offset=ZERO)
Write bytes to the I/O buffer.
struct Ethernet::Address Address
Ethernet network address.
Represents a network packet.
Address Resolution Protocol.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Receive ARP response.
ARPSocket(const u32 inode, ARP *arp)
Constructor.