Go to the documentation of this file.
18 #ifndef __LIB_LIBNET_ETHERNET_H
19 #define __LIB_LIBNET_ETHERNET_H
136 const Size addressSize,
138 const Size payloadSize);
Network protocol abstraction class.
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt, const Size offset)
Process incoming network packet.
virtual FileSystem::Result getAddress(Address *address)
Retrieve Ethernet address.
::ARP * m_arp
ARP protocol.
static const Size CRCSize
Size of the CRC checksum (which is set after the payload)
Log & operator<<(Log &log, const Ethernet::Address &addr)
Network Device abstract class.
void setARP(::ARP *arp)
Set ARP instance.
virtual FileSystem::Result initialize()
Perform initialization.
virtual FileSystem::Result setAddress(const Address *address)
Set Ethernet address.
unsigned long Address
A memory address.
Ethernet networking protocol.
Address m_address
Current ethernet address.
#define PACKED
Ensures strict minimum memory requirements.
::IPV4 * m_ipv4
IPV4 protocol.
Ethernet network address.
unsigned short u16
Unsigned 16-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
@ IPV6
Internet protocol v6.
Internet Protocol Version 4.
static const String toString(const Address address)
Convert address to string.
Result
Result code for filesystem Actions.
unsigned char u8
Unsigned 8-bit number.
PayloadType
List of ethernet payload types.
struct Ethernet::Header Header
Ethernet network packet header.
virtual ~Ethernet()
Destructor.
void setIP(::IPV4 *ip)
Set IPV4 instance.
struct Ethernet::Address Address
Ethernet network address.
Represents a network packet.
Address Resolution Protocol.
Identifier
List of known network protocol identifiers.
Internet Control Message Protocol (ICMP)
virtual FileSystem::Result getTransmitPacket(NetworkQueue::Packet **pkt, const void *address, const Size addressSize, const Identifier protocol, const Size payloadSize)
Get a new packet for transmission.