BeRTOS
Functions
eth.h File Reference

Ethernet standard descriptors. More...

#include <cpu/types.h>

Go to the source code of this file.

Functions

int eth_addrIsZero (const uint8_t *addr)
 Determine if ethernet address addr is a all zero.
int eth_addrIsMcast (const uint8_t *addr)
 Determine if ethernet address addr is a multicast address.
int eth_addrIsLocal (const uint8_t *addr)
 Determine if ethernet address addr is locally-assigned (IEEE 802).
bool eth_addrIsBcast (const uint8_t *addr)
 Determine if ethernet address addr is broadcast.
bool eth_addrIsValid (const uint8_t *addr)
 Check if the ethernet address addr is not all zero, is not a multicast address, and is not broadcast.
bool eth_addrCmp (const uint8_t *addr1, const uint8_t *addr2)
 Compare two ethernet addresses: addr1 and addr2, returns 0 if equal.

Detailed Description

Ethernet standard descriptors.

Author:
Andrea Righi <arighi@develer.com>

Definition in file eth.h.