Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

if_ether.h File Reference

Ethernet interface definitions. More...

#include <sys/types.h>
#include <net/if_var.h>
#include <net/if_arp.h>

Go to the source code of this file.

Data Structures

struct  ether_arp
 Ethernet ARP protocol structure. More...

struct  ether_header
 Ethernet protocol header. More...


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

void NutArpInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming ARP packets.

NETBUFNutArpAllocNetBuf (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.


Detailed Description

Ethernet interface definitions.

A more elaborated file description.


Generated on Thu Jan 30 22:30:54 2003 for EduNet by doxygen1.2.18