Go to the documentation of this file.
23 , m_maximumPacketSize(1500)
24 , m_receive(m_maximumPacketSize)
25 , m_transmit(m_maximumPacketSize)
47 ERROR(
"failed to initialize Device: result = " << (
int) result);
86 DEBUG(
"pid = " << pid);
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt, const Size offset)
Process incoming network packet.
virtual FileSystem::Result startDMA()
Start DMA processing.
const Size getMaximumPacketSize() const
Get maximum packet size.
NetworkDevice(const u32 inode, NetworkServer &server)
Constructor.
virtual FileSystem::Result initialize()
Initialize the device.
virtual ~NetworkDevice()
Destructor.
Size m_maximumPacketSize
Maximum size of each packet.
void setARP(::ARP *arp)
Set ARP instance.
virtual FileSystem::Result initialize()
Perform initialization.
void setIP(::IPV4 *ip)
Set IPV4 instance.
User Datagram Protocol (UDP)
Abstract device class interface.
u32 ProcessID
Process Identification Number.
virtual FileSystem::Result process(const NetworkQueue::Packet *packet, const Size offset=0)
Process a received network packet.
Networking packet queue implementation.
Ethernet networking protocol.
#define DEBUG(msg)
Output a debug message to standard output.
virtual FileSystem::Result initialize()
Perform initialization.
void unregisterSockets(const ProcessID pid)
Remove sockets for a process.
virtual FileSystem::Result initialize()
Perform initialization.
NetworkQueue * getTransmitQueue()
Get transmit queue.
unsigned int u32
Unsigned 32-bit number.
void unregisterSockets(const ProcessID pid)
Remove sockets for a process.
unsigned int Size
Any sane size indicator cannot go negative.
void setARP(::ARP *arp)
Set ARP instance.
Internet Protocol Version 4.
virtual FileSystem::Result initialize()
Perform initialization.
NetworkQueue * getReceiveQueue()
Get receive queue.
void setUDP(::UDP *udp)
Set UDP instance.
void setICMP(::ICMP *icmp)
Set ICMP instance.
#define ERROR(msg)
Output an error message.
Result
Result code for filesystem Actions.
void setIP(::IPV4 *ip)
Set IPV4 instance.
void unregisterSockets(const ProcessID pid)
Remove sockets for a process.
Represents a network packet.
Address Resolution Protocol.
virtual FileSystem::Result initialize()
Initialize the device.
virtual FileSystem::Result initialize()
Perform initialization.
Internet Control Message Protocol (ICMP)