Go to the documentation of this file.
46 ERROR(
"failed to initialize NetworkDevice: result = " << (
int) result);
virtual ~Loopback()
Destructor.
static Size copy(void *dest, const void *src, Size count)
Copy memory from one place to another.
Ethernet::Address m_address
Ethernet address for the loopback device.
Network Device abstract class.
void release(Packet *packet)
Put unused packet back.
virtual FileSystem::Result process(const NetworkQueue::Packet *packet, const Size offset=0)
Process a received network packet.
#define DEBUG(msg)
Output a debug message to standard output.
Loopback(const u32 inode, NetworkServer &server)
Constructor.
Ethernet network address.
virtual FileSystem::Result transmit(NetworkQueue::Packet *pkt)
Transmit one network packet.
virtual FileSystem::Result getAddress(Ethernet::Address *address)
Read ethernet address.
static const Address toAddress(const char *address)
Convert string to IPV4 address.
unsigned int u32
Unsigned 32-bit number.
virtual FileSystem::Result setAddress(const Address *address)
Set current IP address.
#define ERROR(msg)
Output an error message.
Result
Result code for filesystem Actions.
virtual FileSystem::Result initialize()
Initialize the device.
virtual FileSystem::Result setAddress(const Ethernet::Address *address)
Set ethernet address.
Represents a network packet.
virtual FileSystem::Result initialize()
Initialize the device.