A more elaborated file description.
Definition in file if_ether.h.
Go to the source code of this file.
Data Structures | |
struct | ETHERHDR |
struct | ETHERARP |
Defines | |
#define | ETHERTYPE_IP 0x0800 |
IP protocol. | |
#define | ETHERTYPE_ARP 0x0806 |
Address resolution protocol. | |
#define | ETHERMTU 1500 |
Ethernet maximum transfer unit. | |
#define | ETHERMIN (60-14) |
Ethernet minimum transfer unit. | |
Functions | |
u_char * | ether_aton (CONST char *str) |
Convert an ASCII string to a binary Ethernet address. | |
char * | ether_ntoa (CONST u_char *mac) |
Convert a binary Ethernet address to an ASCII string. | |
void | NutArpInput (NUTDEVICE *dev, NETBUF *nb) |
Handle incoming ARP packets. | |
NETBUF * | NutArpAllocNetBuf (u_short type, u_long ip, u_char *mac) |
Allocate an ARP network buffer structure. | |
int | NutArpOutput (NUTDEVICE *dev, NETBUF *nb) |
Send an ARP packet. | |
void | NutArpCacheUpdate (NUTDEVICE *dev, u_long ip, u_char *ha) |
Update an ARP entry. | |
int | NutArpCacheQuery (NUTDEVICE *dev, u_long ip, u_char *mac) |
#define ETHERTYPE_IP 0x0800 |
IP protocol.
Definition at line 131 of file if_ether.h.
Referenced by NutArpAllocNetBuf(), NutArpInput(), NutEtherInput(), and NutIpOutput().
#define ETHERTYPE_ARP 0x0806 |
Address resolution protocol.
Definition at line 132 of file if_ether.h.
Referenced by NutArpOutput(), and NutEtherInput().
#define ETHERMTU 1500 |
#define ETHERMIN (60-14) |
u_char* ether_aton | ( | CONST char * | str | ) |
Convert an ASCII string to a binary Ethernet address.
str | String to convert. |
Definition at line 60 of file ether_addr.c.
char* ether_ntoa | ( | CONST u_char * | mac | ) |
Convert a binary Ethernet address to an ASCII string.
mac | Address to convert. |
Definition at line 99 of file ether_addr.c.
Referenced by NutIpOutput().