ethernet_misc.h
error_t ethEncodeVlanTag(NetBuffer *buffer, size_t *offset, uint16_t vlanId, int8_t vlanPcp, int8_t vlanDei, uint16_t type)
VLAN tag encoding.
Definition: ethernet_misc.c:190
void ethUpdateErrorStats(NetInterface *interface, error_t error)
Update Ethernet error statistics.
Definition: ethernet_misc.c:464
void ethUpdateInStats(NetInterface *interface, const MacAddr *destMacAddr)
Update Ethernet input statistics.
Definition: ethernet_misc.c:383
Ethernet.
uint32_t ethCalcCrcEx(const NetBuffer *buffer, size_t offset, size_t length)
Calculate CRC over a multi-part buffer.
Definition: ethernet_misc.c:567
error_t ethDecodeVlanTag(const uint8_t *frame, size_t length, uint16_t *vlanId, uint16_t *type)
VLAN tag decoding.
Definition: ethernet_misc.c:243
error_t ethCheckCrc(NetInterface *interface, const uint8_t *frame, size_t length)
Ethernet CRC verification.
Definition: ethernet_misc.c:644
error_t ethPadFrame(NetBuffer *buffer, size_t *length)
Ethernet frame padding.
Definition: ethernet_misc.c:147
void ethUpdateOutStats(NetInterface *interface, const MacAddr *destMacAddr, size_t length)
Update Ethernet output statistics.
Definition: ethernet_misc.c:421
bool_t ethTrapIgmpPacket(EthHeader *header, uint8_t *data, size_t length)
Trap IGMP packets.
Definition: ethernet_misc.c:351
error_t ethCheckDestAddr(NetInterface *interface, const MacAddr *macAddr)
Destination MAC address filtering.
Definition: ethernet_misc.c:279
TCP/IP stack core.
uint32_t ethCalcCrc(const void *data, size_t length)
Ethernet CRC calculation.
Definition: ethernet_misc.c:502