File nut/include/netinet/if_ether.h


Included Files


Preprocessor definitions

#define _NETINET_IF_ETHER_H_

#define ETHERTYPE_IP 0x0800

#define ETHERTYPE_ARP 0x0806

#define ETHERMTU 1500

#define ETHERMIN


Typedef ETHERHDR

typedef struct ether_header ETHERHDR
struct ether_header  
   {  
      u_char ether_dhost[6];  
      u_char ether_shost[6];  
      u_short ether_type;  
   }  

Typedef ETHERARP

typedef struct ether_arp ETHERARP
struct ether_arp  
   {  
      ARPHDR ea_hdr;  
      u_char arp_sha[6];  
      u_long arp_spa;  
      u_char arp_tha[6];  
      u_long arp_tpa;  
   }