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